-->
Page 1 of 9

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

PostPosted: Sat Feb 14, 2015 9:37 am
by alonewolfx2
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

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 :D )

PCD8544 binary file added.

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

PostPosted: Sat Feb 14, 2015 11:18 am
by ozayturay
Very good news, i've been waiting for this to make a little device which gets prayer times for my city from http://www.namazvakti.com using ThingHTTP from http://www.thingspeak.com application and displays on a little screen.

https://api.thingspeak.com/apps/thinght ... M1USLBWE2R

With ThingHTTP you can get only a small portion of a website so that you donct get too much data to your microcontroller to save bandwith and mcu power.

Keep up the good work bro. ;)

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

PostPosted: Sat Feb 14, 2015 1:40 pm
by alonewolfx2
good idea :) video uploaded
ozayturay wrote:Very good news, i've been waiting for this to make a little device which gets prayer times for my city from http://www.namazvakti.com using ThingHTTP from http://www.thingspeak.com application and displays on a little screen.

https://api.thingspeak.com/apps/thinght ... M1USLBWE2R

With ThingHTTP you can get only a small portion of a website so that you donct get too much data to your microcontroller to save bandwith and mcu power.

Keep up the good work bro. ;)

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

PostPosted: Tue Feb 17, 2015 9:45 am
by alonewolfx2
PCD8544 binary file added. first post updated