- Fri Apr 01, 2016 12:56 am
#44619
More details:
- LCD connection looks ok, because with Arduino and fork of Adafruit library using HSPI everything is OK with LCD
- on NodeMCU I'm using:
Code: Select allNodeMCU custom build by frightanic.com
branch: master
commit: c8037568571edb5c568c2f8231e4f8ce0683b883
SSL: false
modules: adc,dht,file,gpio,i2c,mqtt,net,node,pwm,sntp,spi,tmr,u8g,uart,wifi,ws2812
build built on: 2016-03-30 19:46
powered by Lua 5.1.4 on SDK 1.4.0
- testing with simple script:
Code: Select allfunction init_spi_display()
cs = 1
dc = 6
res = 2
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8, 8)
disp = u8g.pcd8544_84x48_hw_spi(cs, dc, res)
disp:setFont(u8g.font_6x10)
disp:setFontRefHeightExtendedText()
disp:setDefaultForegroundColor()
disp:setFontPosTop()
end
init_spi_display()
disp:drawStr(0, 12, "TEST")
- funny fact, after I test this LUA script, I saw picture from buffer from Arduino tests
- I have no idea where I make mistake
- I also tried solution from
viewtopic.php?p=9753, but after loading binaries I got:
Code: Select allERROR in flash_read: r=1 at 406E0000
ERROR in flash_read: r=1 at 406E0900
ERROR in flash_read: r=1 at 406E0A00
ERROR in flash_read: r=1 at 406E0B00
ERROR in flash_read: r=1 at 406E0C00
etc.
Maybe someone could send me a working example ?