Post your best Lua script examples here

User avatar
By dcpyatt
#45258 Hello everyone!

Just getting started with using Lua on the Amica V1.0 dev kit and could use a little help getting started...

I was able to get the 128x128 SPI TFT LCD working with Arduino, them moved to the Amica, but as happened with my other Lolin V3 dev kit, it decided to start rebooting itself after a few minutes of using the Arduino IDE to do an example sketch. I reloaded it with Lua and it seems to be functioning OK, but I need to get a basic grasp of how to properly connect the LCD and what I do to actually do some graphical code with it.

As I said, I am just getting started with Lua, can I incorporate the same libraries that I used in Arduino, or do I need to work at a lower level to accomplish the same thing?

It doesn't help that the particular LCD that I am using is the 'fake' red board 1.44" that has the memory incorrectly mapped as a 160x120 as well as defaulting to BGR instead of RGB... (This is the one that Sumotoy has been working on resolving the issues with elsewhere.) I can work around those two obstacles if I can just get where I can plot to the screen!

This platform is so young that it can be difficult to find answers and I would be grateful for any code examples that you might be able to provide or links for me to research to get the answers I need.

Thank you so much for your time and assistance!

Dave Pyatt
(dcpyatt)
Alliance, Ohio USA
User avatar
By glazlink
#46155 You can use customized NodeMCU firmware with UCG library to enable ST7735 tft lcd controller.

NodeMCU firmware has a user_modules.h that can be modified to enable UCG graphic lcd library.

I built my own one and it works fine to my WifiBoy(actually a combo of ST7735+Amica) board.

Check this demo video: https://youtu.be/yJh5nrFzTwQ

;)

--
glazlink