From: dxy15521469561 <1731678236@qq.com> Date: Mon, 28 Aug 2023 06:59:44 +0000 (+0800) Subject: lcd偏移 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=3870ccd58947eee868510b95d2885ef88bd44aa7;p=mirrors%2FASR1603_G5.git lcd偏移 --- diff --git a/2.sdk/project/K01/sdk/services/microPython/ports/quectel/core/lcd.py b/2.sdk/project/K01/sdk/services/microPython/ports/quectel/core/lcd.py index 2e0a8c93..9dc9b35d 100644 --- a/2.sdk/project/K01/sdk/services/microPython/ports/quectel/core/lcd.py +++ b/2.sdk/project/K01/sdk/services/microPython/ports/quectel/core/lcd.py @@ -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)