-->
Page 6 of 9

Re: 16x2 LCD, nokia 5110 LCD , i2c Oled LCD in to the lua

PostPosted: Sat Mar 21, 2015 8:25 pm
by MeNoGeek
Hey Mehmet, I noticed you implemented the pcd8544.contrast() function. Thanks for that!
I also noticed that all instructions following that function in a file get ignored. So, the following file doesn't print anything on my Nokia 5110 LCD:
Code: Select allpcd8544.contrast(62)
pcd8544.print(0,0,'-pcd8544LCD-')
However, sending that block of instructions to the Lua interpreter (with Esplorer for example) works. Any idea?

Re: 16x2 LCD, nokia 5110 LCD , i2c Oled LCD in to the lua

PostPosted: Sat Mar 21, 2015 9:57 pm
by Vleis Walker
alonewolfx2 wrote:
My question:
1. Did I flash the correct bin file (0x00000 and 0x10000) to the ESP?
2. Should 0x7c000 and 0x7e000 be from Default location?

you dont need step 2 (at least for me)
which pins you are using?


Thanks for the reply.....

Pins I used:
copy from pcd8544Test.lua
resetPin=8 --GPIO15
scePin=0 --GPIO16
dcPin=5 --GPIO14
sdinPin=6 --GPIO12
sclkPin=7 -GPIO13

Thx

Re: 16x2 LCD, nokia 5110 LCD , i2c Oled LCD in to the lua

PostPosted: Sun Mar 22, 2015 4:32 am
by alonewolfx2
Can you re-check connections and try new binaries and test lua files. Gpio 16 is special pin and Gpio 15 must be connected gnd with or without resistor. Maybe that pins can be problem. New binaries support 3 pin spi Soo you can use just gpio12-13-14 for pcd8544.(pcd8544 rst to esp rst via resistor, pcd8544 ce to gnd via resistor)

Re: 16x2 LCD, nokia 5110 LCD , i2c Oled LCD in to the lua

PostPosted: Thu May 28, 2015 7:32 am
by moerbeimaster
Will this work with Nokia 5110 on ESP8266-01?