Hi, Using Board “ESP32 Dev Module” board in Arduino IDE 1.8.13, none of the “U8g2/full buffer/…” Examples will compile, e.g. the simple “Hello World”.
Used the U8g2lib.h.
I am using display:
U8G2_ST7920_128X64_F_SW_SPI u8g2(U8G2_R0, /* clock=*/ 18, /* data=*/ 23, /* CS=*/ 5, /* reset=*/ 22);
every compile Example produces this error:
exit status 1
Error compiling for board ESP32 Dev Module.
If anyone can get these U8g2 examples with an ST7920 board, , please let me know how you did it.
Hi.
I never tried that library.
But, what is exactly the error that you’re getting? Can you copy the complete error?
Regards,
Sara
Thanks for the response Sarah. I may be making the question too confusing.
More simply, I want to drive an LCD 128×64 display screen of the type “ST7920”.
I can make it work with an Arduino Nano but not an ESP32. I used this: https://github.com/olikraus/u8glib
for the Nano.
My goal is to use this display, or else a similar display with the ESP32.
Perhaps a suggestion/reccomendation for an alternative ESP32-friendly Display would help me. Size has to be at lease 70mmx40mm display area.
Thanks.
https://photos.app.goo.gl/USukUAehEqKWuwnJ6
Hello there!
I’ve just noticed that there is a new version of that library available. Have you had a chance to try it out yet? You can find it here: https://github.com/olikraus/u8g2.
But what is exactly the error that you get with the ESP32?
Regards,
Sara
I’ll try again with your suggestion with U8g2 and get back to you. I suspect I may have put the library “.h” files in the wrong location.
Thanks
Hi Sarah, Finally got it working. Thanks for your interest.
After I repaired my “libraries” location (I keep it on Google Drive with the Arduino Sketches) I experimented by using the ESP32 HSPI interface instead of the VSPI. Better. Then with the oscope I realised the ESP32 CS pin (chip select) was selecting incorrectly so I attached it to 3.3V (permanently on). The the U8g2 library examples all functioned properly. Hooray!
(I will study the ESP32 to learn the difference between HSPI and VSPI now. Any hints welcome)
Hi.
I’m glad you found the issue.
If you want to learn more about SPI, we have this guide: https://randomnerdtutorials.com/esp32-spi-communication-arduino/
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara