-->
Page 4 of 9

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

PostPosted: Thu Mar 19, 2015 2:59 am
by Jan Marius Evang
alonewolfx2 wrote:Firstly 12-13-14 pins is hspi pins. I dont know can it use 0,2,1 pins as a hSPI .
Secondly did you upload and run pcd8543 example lua file in my first post?


Hi, Thanks for your reply.
I did not upload the lua file, I'll try that.
I saw somewhere that gpio 0/1/2 should work, but I can't find it right now. I'll dig around a little.

When flashing these files, will that remove any lua-files on the device?

Marius

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

PostPosted: Fri Mar 20, 2015 4:55 am
by alonewolfx2
no, just flash firmware and edit pins on pcd8543ex.lua and upload,run this lua file.

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

PostPosted: Fri Mar 20, 2015 11:05 am
by Vleis Walker
alonewolfx2 wrote: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.


Hi there

Firstly... Thank you for all your hard work and effort with the ESP's

I am trying to setup the Nokia 5110 display. Using ESP-07

I have downloaded nodemcu-pcd8544 from this post and flashed the bins to 0x00000 and 0x10000.
0x7c000 was left at INTERNAL://DEFAULT
0x7e000 was left at INTERNAL://BLANK

Flashing was completed with green icon.... :D

I connected my display and changed the pins in pcd8544Test.lua.
Upload the file - using LuaLoader 0.86
Dofile
But no activity on the display.

I removed the display and connected LEDs to the control lines (rst,ce, dc,clk)
Dofile again.

NO ACTIVITY was observed on either of the pins.

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?

All help will be appreciated.
Thanks to all!

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

PostPosted: Sat Mar 21, 2015 3:43 am
by alonewolfx2
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?