54 template <
typename... Args>
125 const int8_t m_dc = -1;
128 uint8_t m_rotation = 0x00;
129 static const uint8_t m_rgb_bit = 0b00000000;
151 , m_rstPin( rstPin ) { }
159 void begin()
override;
188 void begin()
override;
211 , m_spi( *
this, config.dc,
215 config.frequency ?: 8000000,
222 void begin()
override;
249 template <
typename... Args>
252 , m_spi( *this, dcPin,
297 void begin()
override;
320 , m_spi( *
this, config.dc,
324 config.frequency ?: 8000000,
331 void begin()
override;
358 template <
typename... Args>
361 , m_spi( *this, dcPin,
385 #include "lcd_st7735.inl"
DisplayST7735_128x160x16_SPI(int8_t rstPin, const SPlatformSpiConfig &config={ -1, { -1 }, -1, 0, -1, -1 })
Inits 128x160x16 lcd display over spi (based on ST7735 controller): 16-bit mode.
int8_t m_rstPin
indicates hardware reset pin used, -1 if it is not required
DisplayST7735_128x160x16(I &intf, int8_t rstPin)
void setOffset(lcdint_t ox, lcdint_t oy)
Sets display offset in GDRAM memory.
void setRotation(uint8_t rotation)
Sets screen orientation (rotation)
DisplayST7735_128x128x16_SPI(int8_t rstPin, const SPlatformSpiConfig &config={ -1, { -1 }, -1, 0, -1, -1 })
Inits 128x128x16 lcd display over spi (based on ST7735 controller): 16-bit mode.
void startBlock(lcduint_t x, lcduint_t y, lcduint_t w)
Sets block in RAM of lcd display controller to write data to.
InterfaceST7735(NanoDisplayBase< InterfaceST7735< I >> &base, int8_t dc, Args &&... data)
DisplayST7735_128x128x16(I &intf, int8_t rstPin)
DisplayST7735_128x128x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 128x128x16 lcd display over spi (based on ST7735 controller): 16-bit mode.
DisplayST7735x16(I &intf, int8_t rstPin)
void spiDataMode(uint8_t mode)
DisplayST7735_128x160x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 128x160x16 lcd display over spi (based on ST7735 controller): 16-bit mode.