lcd偏移
authordxy15521469561 <1731678236@qq.com>
Mon, 28 Aug 2023 06:59:44 +0000 (14:59 +0800)
committerdxy15521469561 <1731678236@qq.com>
Mon, 28 Aug 2023 06:59:44 +0000 (14:59 +0800)
2.sdk/project/K01/sdk/services/microPython/ports/quectel/core/lcd.py

index 2e0a8c9..9dc9b35 100644 (file)
@@ -182,7 +182,9 @@ btn_device.start()
 
 print("lcd_init2 ...")
 lcd_ctrl = Pin(Pin.GPIO18, Pin.OUT, Pin.PULL_DISABLE, 1)
+
 lcd.lcd_init(init_buf, 128, 128, 26000, 1, 4, 0, invalid, displayon, displayoff, None,TESel = True,TEPin = 17)
+lcd.lcd_set_offset(0,32)
 # gpio_backlight = Pin(Pin.GPIO37, Pin.OUT, Pin.PULL_DISABLE, 0)
 # gpio_backlight.write(1)
 PWM_backlight = PWM(PWM.PWM1, PWM.ABOVE_10US, 0, 1000)