CelliesProjects / M5AnalogClock

An analog clock for M5Stack boards. Demonstrating the 'TFT_eSPI' and 'TFTShape' libraries.
MIT License
5 stars 1 forks source link

M5Stack classic (and other ESP32 without psram builds) support #1

Closed tobozo closed 4 years ago

tobozo commented 4 years ago

hey and thanks for this amazing project :-)

I just got it working with "M5Stack-core-esp32" board selection.

All it needed was to add this in the setup() :

clockSprite.setColorDepth( 8 );

(inserted just before this:)

clockSprite.createSprite( 240, 320 );

[edit] bonus is you get more FPS when compiled for M5Classic as TFT_eSprites are much slower when using psram !

Also there's not much to change in TFTShape to get it to work with M5Stack.h or ESP32-Chimera-Core, only one file needs to be edited (TFTShape.h):

image

CelliesProjects commented 4 years ago

Hi tobozo! Thanks for the bugfix. Will be implemented soon.