wasp: pinetime: Fix backlight flicker during bootup
This commit is contained in:
parent
e31162ae22
commit
6474317574
1 changed files with 4 additions and 3 deletions
|
@ -8,12 +8,13 @@ def st7789():
|
|||
# Mode 3, maximum clock speed!
|
||||
spi.init(polarity=1, phase=1, baudrate=8000000)
|
||||
|
||||
# Extra pins required by the driver
|
||||
# Configure the display
|
||||
cs = Pin("SPI_SS2", Pin.OUT)
|
||||
dc = Pin("P18", Pin.OUT)
|
||||
rst = Pin("P26", Pin.OUT)
|
||||
bl = Pin("P22", Pin.OUT)
|
||||
|
||||
tft = ST7789_SPI(240, 240, spi, cs=cs, dc=dc, res=rst)
|
||||
|
||||
# Bring up the backlight
|
||||
bl = Pin("P22", Pin.OUT)
|
||||
bl.off() # active low
|
||||
return tft
|
||||
|
|
Loading…
Add table
Reference in a new issue