electro-smith / libDaisy

Hardware Library for the Daisy Audio Platform
https://www.electro-smith.com/daisy
MIT License
331 stars 140 forks source link

Add drivers for SSD1327 and the SSD1351. #625

Closed a7v7 closed 1 week ago

a7v7 commented 5 months ago

Add color display driver and OLED color display driver / template. These are closely related to the display and OLED display driver. Updated daisy.h to include the color driver and the OLED color driver. The hardware interface is identical to the black / white driver.

The SSD1327 driver is configured for 128x128. It supports 16 gray scale level. Each pixel is 4-bits. The SSD1351 driver is configured for 128x128. It supports 64k color. Each pixel is 16-bits (565 color).

The main addition to the black / white driver is the concept of a foreground / background color. All other calls remain the same. These device drivers are a v1 status. I want to add image processing and change the SPI transaction to DMA.

These drivers were tested with these two OLED displays: SSD1327: WaveShare OLED SSD1351: WaveShare OLED

stephenhensley commented 1 week ago

Awesome! Thanks for the contribution!