16x2 LCD, nokia 5110 LCD , i2c Oled LCD in to the lua
Posted: Sat Feb 14, 2015 9:37 am
i am trying to implement this lcd libraries in to the lua.
progress
16x2-i2cLCD(hd44780) basic functions working."free heap(21400)".sample lua code usage
nokia 5110 LCD(pcd8544) basic functions working."free heap(21030)"sample lua code usage
i pushed code in to the my github account. i know its not very clean code but maybe someone clean it. i dont have much time.
https://github.com/alonewolfx2/nodemcu-firmware
i will share source as soon as possible. (now i cant register lua module so i used LUA_USE_MODULES_WS2812 module files )
PCD8544 binary file added.
progress
16x2-i2cLCD(hd44780) basic functions working."free heap(21400)".sample lua code usage
Code: Select all
-hd44780.init()
-hd44780.clear()
-hd44780.print(0,0,'mbozkurt')
nokia 5110 LCD(pcd8544) basic functions working."free heap(21030)"sample lua code usage
i pushed code in to the my github account. i know its not very clean code but maybe someone clean it. i dont have much time.
https://github.com/alonewolfx2/nodemcu-firmware
Code: Select all
--pin names coming from esp8266 sdk, not nodemcu sory about that
resetPin=4
scePin=5
dcPin=12
sdinPin=13
sclkPin=14
--now setup time
pcd8544.init(resetPin,scePin,dcPin,sdinPin,sclkPin)
--now we can write womething
--usage pcd8544.print(x,line,'pcd8544LCD')
-- we have 6 line and 12 char for every line.
pcd8544.print(0,0,'-pcd8544LCD-')
pcd8544.print(0,1,'- NodeMcu -')
pcd8544.print(0,2,wifi.sta.getip())
pcd8544.print(0,3,'serverRuning')
pcd8544.print(0,4,'vdd='..node.readvdd33()..'mV')
pcd8544.print(0,4,'Heap='..node.heap())
i will share source as soon as possible. (now i cant register lua module so i used LUA_USE_MODULES_WS2812 module files )
PCD8544 binary file added.