I build the 318 version using PlatformIO, and I can not get the display to work. It just stays black.
But according to the console output, the display is detected and started. I’ve added multiple debug log messages, and see that the display() and page1() functions are called.
But, to the funny thing. If I do:
Program the LilyGO with the factory example (and verify the display is working)
Leave the 12V connected
Re-program with the myfocuser2
The display works! It continues to work (across several resets), but if I disconnect the 12V, it will not work again.
Is there some initialisation of the display that is not correct?
All other functions of the myfocuser2 seems to work: Temp sensor, step motor and web interface (wifi connection is stable).
Best regards,
Bjørn Røgeberg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did a dirty hack just for test. I added the U8g2 library to the project, included it at the top of the display_lilygo.cpp file, and added these two lines to the LILYGO_DISPLAY::start() function:
I’m getting a strange issue I do not understand. I'm using the original display that comes with the LilyGO.
I have tested the LilyGO factory example code: https://github.com/Xinyuan-LilyGO/T-Motor/tree/main/Software/example/factory
The example was built using PlatformIO.
The display works fine.
I build the 318 version using PlatformIO, and I can not get the display to work. It just stays black.
But according to the console output, the display is detected and started. I’ve added multiple debug log messages, and see that the display() and page1() functions are called.
But, to the funny thing. If I do:
The display works! It continues to work (across several resets), but if I disconnect the 12V, it will not work again.
Is there some initialisation of the display that is not correct?
All other functions of the myfocuser2 seems to work: Temp sensor, step motor and web interface (wifi connection is stable).
Best regards,
Bjørn Røgeberg
I did a dirty hack just for test. I added the U8g2 library to the project, included it at the top of the display_lilygo.cpp file, and added these two lines to the LILYGO_DISPLAY::start() function:
And that actually does work! Maybe I'll just convert it to using the U8g2 library.
BjørnR