smallbasic / smallbasic.plugins

Plugins
GNU General Public License v3.0
9 stars 4 forks source link

Add ST7789 example #10

Closed Joe7M closed 3 months ago

Joe7M commented 3 months ago

Hi Chris,

here a SPI example for a TFT with a ST7789 controller. In principal it works but it has two problems:

It would be great, if for I2C these two thinks could also be implemented.

Best regards, Joerg

chrisws commented 3 months ago

Thanks for this. I have the TI educational booster pack mkII from a course I did a few years ago.

This has a ST7735S lcd. Hopefully it will be fairly similar to the ST7789.

It should be simple enough to add multi-byte handling to SPI.write. This is already implemented for the TWI interface.