Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By picstart
#45188 [quote]This library it's based on my TFT_ILI9163C that works with ESP, same speed, same features. It compiles but never really tested (but should work):
https://github.com/sumotoy/TFT_ST7735/tree/1.1b1 [/quote]

This code actually may not have been tested for the esp8266 by the poster however it really does work right out of the box...a welcome change.
Thank You
User avatar
By picstart
#45278 Looking at the specs for the ST7735S it uses a circular buffer for vertical scrolling..this means if you need to update the buffer by erasing a line and then writing a new line in its place then the erasure fill (a rectangle in the background color of line width and font height) needs to go into the top of the buffer and the scroll recirculates this new blank line to the bottom at which point ( the new line is written). the scroll area must be a multiple of the font height. After scrolling a line the pointer into the buffer must be updated.
Vertical terminal type scrolling now works.I'm reluctant to post any code since some of it is commercial the property of somotoy. I may dig this commercial code out later.