33 #include "v2/lcd/base/display.h" 53 template <
typename... Args>
132 const int8_t m_dc = -1;
134 uint8_t m_rotation = 0x00;
135 uint8_t m_rgb_bit = 0b00000000;
192 void beginController();
197 void endController();
199 #ifdef CONFIG_LCDGFX_PLATFORM_SPI 213 explicit DisplayST7735_128x128x16_SPI(int8_t rstPin,
const SPlatformSpiConfig &config = {-1, {-1}, -1, 0U, -1, -1})
215 , m_spi(*
this, config.dc,
217 config.busId, {config.cs}, config.
dc, config.frequency ?: static_cast<uint32_t>(8000000), config.scl, config.sda})
224 void begin()
override;
251 template <
typename... Args>
254 , m_spi(*this, dcPin, data...)
300 void beginController();
305 void endController();
307 #ifdef CONFIG_LCDGFX_PLATFORM_SPI 321 explicit DisplayST7735_80x160x16_SPI(int8_t rstPin,
const SPlatformSpiConfig &config = {-1, {-1}, -1, 0U, -1, -1})
323 , m_spi(*
this, config.dc,
325 config.busId, {config.cs}, config.
dc, config.frequency ?: static_cast<uint32_t>(8000000), config.scl, config.sda})
332 void begin()
override;
359 template <
typename... Args>
362 , m_spi(*this, dcPin, data...)
408 void beginController();
413 void endController();
415 #ifdef CONFIG_LCDGFX_PLATFORM_SPI 429 explicit DisplayST7735_128x160x16_SPI(int8_t rstPin,
const SPlatformSpiConfig &config = {-1, {-1}, -1, 0U, -1, -1})
431 , m_spi(*
this, config.dc,
433 config.busId, {config.cs}, config.
dc, config.frequency ?: static_cast<uint32_t>(8000000), config.scl, config.sda})
440 void begin()
override;
467 template <
typename... Args>
470 , m_spi(*this, dcPin, data...)
495 #include "lcd_st7735.inl"
int8_t m_rstPin
indicates hardware reset pin used, -1 if it is not required
DisplayST7735_128x160x16(I &intf, int8_t rstPin)
void setDataMode(uint8_t mode)
void setOffset(lcdint_t ox, lcdint_t oy)
Sets display offset in GDRAM memory.
void setRotation(uint8_t rotation)
Sets screen orientation (rotation)
void startBlock(lcduint_t x, lcduint_t y, lcduint_t w)
Sets block in RAM of lcd display controller to write data to.
DisplayST7735_80x160x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 80x160x16 lcd display over spi (based on ST7735 controller): 16-bit mode.
InterfaceST7735(NanoDisplayBase< InterfaceST7735< I >> &base, int8_t dc, Args &&... data)
DisplayST7735_128x128x16(I &intf, int8_t rstPin)
void setRgbMode(uint8_t mode)
Sets RGB mode used by dispay controller.
DisplayST7735_128x128x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 128x128x16 lcd display over spi (based on ST7735 controller): 16-bit mode.
DisplayST7735_80x160x16(I &intf, int8_t rstPin)
DisplayST7735x16(I &intf, int8_t rstPin)
DisplayST7735_128x160x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 128x160x16 lcd display over spi (based on ST7735 controller): 16-bit mode.