1
0
mirror of https://gitee.com/openLuat/LuatOS synced 2025-08-17 22:18:03 +08:00

fix:gtfont使用半双工

This commit is contained in:
Dozingfiretruck 2023-01-03 11:57:10 +08:00
parent ccf2660d89
commit 4c0ee68e69

View File

@ -16,8 +16,8 @@ _G.sys = require("sys")
wdt.init(9000)--初始化watchdog设置为9s
sys.timerLoopStart(wdt.feed, 3000)--3s喂一次狗
spi_gtfont = spi.deviceSetup(0,7,0,0,8,20*1000*1000,spi.MSB,1,1)
spi_lcd = spi.deviceSetup(0,20,0,0,8,2000000,spi.MSB,1,1)
spi_gtfont = spi.deviceSetup(0,7,0,0,8,20*1000*1000,spi.MSB,1,0)
spi_lcd = spi.deviceSetup(0,20,0,0,8,2000000,spi.MSB,1,0)
log.info("lcd.init",
lcd.init("st7789",{port = "device",pin_dc = 17,pin_rst = 16,direction = 0,w = 240,h = 320,xoffset = 0,yoffset = 0},spi_lcd))