Nokia or oled on nodemcu - hardware connections #5664
Replies: 1 comment
-
Posted at 2016-04-25 by @gfwilliams Honestly, I'd ignore the hardware SPI, and go straight for software - then you can use whatever pins you want:
Posted at 2016-04-25 by Wilberforce Thanks. I have that a go - however still a blank screen. I'm unsure in the nodemcu board the upper tx and rd are D8 and D9. I might have to pull the one wire and led stuff I have on lower pins and try that next. Posted at 2016-04-26 by DrAzzy Hm, I remember having problems using software SPI - nothing seemed to work, but I didn't have the scope on hand to figure out what was going on. What's wrong with using hardware SPI? Posted at 2016-04-26 by @gfwilliams Hardware SPI on ESP8266 is a huge copy/paste hack that ignores all the pin assignments, and sets up all the SPI registers and blocks for every single byte sent. As a result you might feel better, but realistically it's actually going to be less efficient than just using software. Software really should work - I guess a while back there were issues with the internal Posted at 2016-04-27 by MrTimcakes I've had it working. This is the code I used for a Nokia 5110 aka the PCD8544
Posted at 2016-04-27 by MrTimcakes I've also had it working with an I2C OLED, the SSD1306, here's that code:
These should probably be put on some wiki somewhere. Posted at 2016-04-27 by Wilberforce Thanks @ducky - I'll give your pin assignments a go. Posted at 2016-04-27 by @MaBecker @ducky some OLED need a reset before init, so add another pin to your table for RST. Posted at 2016-05-18 by bigplik i have that error in console when use last @ducky code
how can I fix it? Posted at 2016-05-18 by Wilberforce Your firmware version is out of date and does not have the graphics module built it. Update the firmware. Posted at 2016-05-18 by bigplik I can't upload new firmware by
I've got terminal error
Posted at 2016-05-19 by Wilberforce it needs the port:
Posted at 2016-05-19 by bigplik thank you @wilberforce it works on esp-12E, Posted at 2016-05-19 by Wilberforce For the wiflash to work - the device has to be connected to the network and will have it's own ip address. Did you check the address the Lolin was getting? You could try using the serial flash. Posted at 2016-05-23 by bigplik I still have same error in console, even after sucessful firmware upgrade by ./wiflash
I've been trying to upload this code
I deal with another NodeMcu, before I tried with Lolin board and now with CP2101 chip, but still can't connect OLED Posted at 2016-05-23 by Wilberforce What is the output of Posted at 2016-05-25 by MrTimcakes @bigplik You need the latest binaries with Graphics support in them. Download the latest release and use wiflash to flash them to the ESP8266. Just to add, if you're on Windows I believe if you install Git, and select "Use Git and optional Unix tools from the windows command prompt", you can run wiflash (Inside the download zip in the ESP8266 Folder) on windows with "sh wiflash" instead of "./wiflash" just remember to change the IP but keep the port number (":88"). Would be awesome if that was added to the docs page. Posted at 2016-05-26 by @gfwilliams The docs are here if you want to do some tweaks ;) https://github.com/espruino/EspruinoDocs/blob/master/boards/EspruinoESP8266.md Posted at 2016-05-26 by MrTimcakes Will do. Shouldn't wiflash be renamed to wiflash.sh? Also, I just want to double check that "sh" does the same thing as "./" on Linux. Posted at 2016-05-26 by Wilberforce @tve has pushed a patch through that adds .sh to wiflash - the current git hub version has it, so v1.86 will have this Posted at 2016-05-26 by MrTimcakes Sweet, I'll do a pull request to update the Docs in preparation Posted at 2017-01-19 by user72844 Is this only applicable to ESP-12 ? Because i try connect I2C SSD1306 on ESP-01 (1MB version, Espruino v1.91), console show error: "Graphics" is not defined. Posted at 2017-01-19 by Wilberforce I think the graphics module was removed from recent esp8266 builds as the firmware got too large to fit. @MaBecker might have a recent build with graphics defined. Posted at 2017-01-24 by @MaBecker Hi @user72844 check this build and follow the instruction in README_flash.txt to flash your ESP with this build. Posted at 2017-01-25 by user72844 It's work now, thanks @MaBecker. Posted at 2017-01-25 by @MaBecker The distributed binaries only contain Modules set in the Makefile (section ESP8266)
Adding GRAPHICS need some extra make command line options:
and a reduction of variables from 1700 to 1600 in ESP8266_BOARD.py Posted at 2017-01-25 by Wilberforce The reason it was removed is that it did not fit and the rom space was overflowing. @MaBecker - it might be worth seeing if the graphics module fits within the current build I'm not sure how much space it was short on. Posted at 2017-01-26 by @MaBecker Using RELEASE=1 also cuts out all NET_DBG and WIFI_DBG statements in my build
so this is what you get:
Did this, because needed more heap.
So what do you think @wilberforce ? Posted at 2017-01-26 by Wilberforce Is this with crypto and graphics enabled in the Makefile? Posted at 2017-01-26 by @MaBecker Yes Posted at 2017-01-26 by Wilberforce Well that's good then, so can this be set back to be the default? I wonder if when @tve removed if the release=1 flag was off? Posted at 2017-01-26 by @MaBecker There is much more coding that can be excluded with DBG and DBGV macro controlled by RELEASE=1 for the ESP to free up more space ... Posted at 2017-04-28 by zhogov Hi Posted at 2017-04-28 by dave_irvine http://www.espruino.com/modules/PCD8544.js Posted at 2017-04-28 by zhogov Thanks.
Posted at 2017-04-29 by Wilberforce Not quite sure what you are asking.... Here is a thread for connection the Nokia display to the esp8266... not sure which board you are using.. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-04-25 by Wilberforce
Has anyone managed to use the esp8266 to drive a graphics display?
I'm confused on how the
nodemcu.D?
pin outs correspond to the sp1 labeled on the board, and which pins are free to use - I know that nodemcu.D4 is the serial debug, so pins D5 upwards are ok, but unsure on how these map.A fritzing diagram or similar would be appreciated!
So far I have:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions