template<typename RGB_T = RGB565>
class tinygpu::DeviceOutput< RGB_T >
Hardware abstraction for writing framebuffers to SPI-based color displays.
DeviceOutput provides a unified interface for sending RGB565 framebuffer data to common embedded display controllers (ST7735, ST7789, ILI9341, HX8357) using the Arduino SPI API.
Features:
- Handles X/Y offsets for displays that require them (via driver)
- Supports configurable color order (RGB/BGR) via RGB565
- Initialization sequence and address window logic delegated to driver
- Optional hardware reset pin (via driver)
- Efficient bulk framebuffer transfer
Usage: DeviceOutput out(new ILI9341Driver(spi, cs, dc, rst), 240, 320); out.writeData(framebuffer);
- Note
- For color order, set RGB565::setColorOrderBGR(true/false) as needed for your display, before creating any data.