-->
Page 1 of 1

ESP8266 + PCD8544 = fail

PostPosted: Thu Mar 31, 2016 12:47 am
by Bartek
Hello all,
I am newbie with ESP8266. Yesterday I tried to run ESP8266 (NodeMCU v3 board) and LCD like Nokia 5110 with PCD8544 driver.

At first attempt, I had random pixels displayed. The second try, I connected everything once again and after initialization I have only black square on display.

Currently, I can't show connections or LUA code (away from home), but maybe someone can me show how to connect this diplay correct and write a string on LCD with LUA ? :)

Re: ESP8266 + PCD8544 = fail

PostPosted: Thu Mar 31, 2016 2:55 pm
by Piotr41
Na ten Topic już patrzyłeś?
viewtopic.php?p=9753

Re: ESP8266 + PCD8544 = fail

PostPosted: Thu Mar 31, 2016 4:19 pm
by Bartek
Patrzyłem, po wgraniu binarek, mam tylko
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
ERROR in flash_read: r=1 at 406E0D00
ERROR in flash_read: r=1 at 406E1000
ERROR in flash_read: r=1 at 406E1C00
ERROR in flash_read: r=1 at 406E1F00
ERROR in flash_read: r=1 at 406E2000
ERROR in flash_read: r=1 at 406E2C00

Z arduino IDE działa

Re: ESP8266 + PCD8544 = fail

PostPosted: Fri Apr 01, 2016 12:56 am
by Bartek
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 ?