wwatson4506 / Ra8876LiteTeensy

Teensy RA8876 Driver
14 stars 6 forks source link

Add support for ER-TFT0784 #5

Closed blackketter closed 4 years ago

blackketter commented 4 years ago

Here's a patch for adding support for the ER-TFT0784, including configuration of the SSD2828 MIPI bridge. It's in its own header with its own class. I couldn't find any other displays that wouldn't be covered by either the ER-TFT0784_t3 or RA8876_t3 classes.

This required factoring out hard constants for screen dimensions. The only API change is for selectScreen() to take a screen number rather than address pointer. There are also added methods for calculating display RAM addresses, which may be needed instead of the hard constants for PAGEn_START_ADDR, PATTERNn_RAM_START_ADDR and WPn_ADDR.

The only example I've updated here is graphics.ino. Will do the others once we're good with the changes.

Please give me lots of feedback!

p.s. Arial wasn't in the library, but comic sans was, so I changed to that. :)