dejwk / roo_display

Arduino-compliant library, targeted at ESP32 and related boards, for driving display devices and touch panels, e.g. ILI9486, ILI9341, or ST7789. Powerful and fast.
Other
8 stars 1 forks source link

6 digit clock example #4

Closed Boyeen closed 2 years ago

Boyeen commented 2 years ago

Coded to run on a 1.47" 172x320 ST7789 display

Dejwk, this is a simple clock example that you MIGHT wish to accept. My feelings will NOT be hurt if you decline, I just finished it and thought I could make a contribution to show others how powerful and simple roo_display is.

BTW: I have always modified my 240x240 displays to add a CS pin. Today I tried an unmodified (no CS) display with this code and some of your examples but they don't work. Have you tried the unmodified boards with always active CS?

I noticed that TFT_eSPI seems to support them but Bodmer says it is not reliable and recommends against using the displays.

dejwk commented 2 years ago

Thanks Boyeen, I will gladly accept this.

FWiW, in case you find it interesting, I wrote another utility library that could perhaps simplify the code that deals with time:

https://github.com/dejwk/roo_time

Also, you might want to take a look at roo_display/ui/string_printer.h, which makes it simple to compose strings by writing to them the same way you'd write to a Serial output.