TinyGPU
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ST7796Driver< RGB_T > Class Template Reference

Driver for ST7796 SPI display controller. More...

#include <DisplayDriverSPI.h>

Inheritance diagram for ST7796Driver< RGB_T >:
Inheritance graph
[legend]
Collaboration diagram for ST7796Driver< RGB_T >:
Collaboration graph
[legend]

Public Member Functions

 ST7796Driver (SPIClass &spi, int8_t cs, int8_t dc, int8_t rst=-1)
 
bool begin () override
 
- Public Member Functions inherited from DisplayDriverSPI< RGB_T >
 DisplayDriverSPI (SPIClass &spi, int8_t cs, int8_t dc, int8_t rst=-1, size_t xOffset=0, size_t yOffset=0, uint32_t frequencyHz=40000000, uint32_t readFrequencyHz=15000000, size_t width=240, size_t height=320)
 
size_t width () const override
 
size_t height () const override
 
bool writeData (ISurface< RGB_T > &surface) override
 
void setSwapOutputBytes (bool swap)
 
bool writeData (ISurface< RGB_T > &surface, size_t x, size_t y) override
 
bool readData (ISurface< RGB_T > &surface, size_t x, size_t y)
 
- Public Member Functions inherited from DisplayDriver< RGB_T >
virtual ~DisplayDriver ()=default
 
virtual bool begin ()=0
 
virtual void end ()
 
virtual bool writeData (ISurface< RGB_T > &surface)=0
 
virtual bool writeData (ISurface< RGB_T > &surface, size_t x, size_t y)=0
 
virtual void setRotation (DisplayRotation rotation)
 
virtual size_t width () const =0
 
virtual size_t height () const =0
 
void writeColor (size_t width, size_t height, RGB_T color)
 

Additional Inherited Members

- Protected Member Functions inherited from DisplayDriverSPI< RGB_T >
void setColumnRowAddress (size_t x, size_t y, size_t w, size_t h)
 
bool setAddressWindow (size_t x, size_t y, size_t w, size_t h) override
 
void setupPinsAndReset ()
 
void writeCommand (uint8_t cmd)
 
void writeData16 (uint16_t d1, uint16_t d2)
 
void writeData8 (uint8_t data)
 
void writeDataN (std::initializer_list< uint8_t > bytes)
 
virtual bool setAddressWindow (size_t x, size_t y, size_t w, size_t h)=0
 
- Protected Attributes inherited from DisplayDriverSPI< RGB_T >
SPIClass & spi_
 
int8_t cs_
 
int8_t dc_
 
int8_t rst_
 
size_t xOffset_
 
size_t yOffset_
 
uint32_t frequencyHz_
 
uint32_t readFrequencyHz_
 
size_t width_
 
size_t height_
 
bool swapOutputBytes_ = false
 
- Protected Attributes inherited from DisplayDriver< RGB_T >
Font5x7< RGB_T > defaultFont
 

Detailed Description

template<typename RGB_T = RGB565>
class tinygpu::ST7796Driver< RGB_T >

Driver for ST7796 SPI display controller.

Constructor & Destructor Documentation

◆ ST7796Driver()

ST7796Driver ( SPIClass &  spi,
int8_t  cs,
int8_t  dc,
int8_t  rst = -1 
)
inline

Member Function Documentation

◆ begin()

bool begin ( )
inlineoverridevirtual

The documentation for this class was generated from the following file: