33 #include "v2/lcd/base/display.h" 53 template <
typename... Args>
124 const int8_t m_dc = -1;
126 uint8_t m_rotation = 0x00;
127 static const uint8_t m_rgb_bit = 0b00001000;
184 void beginController();
189 void endController();
206 , m_spi(*
this, config.dc,
208 config.busId, {config.cs}, config.
dc, config.frequency ?: 40000000, config.scl, config.sda})
215 void begin()
override;
241 template <
typename... Args>
244 , m_spi(*this, dcPin, data...)
290 void beginController();
295 void endController();
312 , m_spi(*
this, config.dc,
314 config.busId, {config.cs}, config.
dc, config.frequency ?: 40000000, config.scl, config.sda})
321 void begin()
override;
347 template <
typename... Args>
350 , m_spi(*this, dcPin, data...)
375 #include "lcd_st7789.inl"
void startBlock(lcduint_t x, lcduint_t y, lcduint_t w)
Sets block in RAM of lcd display controller to write data to.
DisplayST7789_135x240x16(I &intf, int8_t rstPin)
void setRotation(uint8_t rotation)
Sets screen orientation (rotation)
void setDataMode(uint8_t mode)
DisplayST7789_240x240x16_SPI(int8_t rstPin, const SPlatformSpiConfig &config={-1, {-1}, -1, 0, -1, -1})
Inits 240x240x16 lcd display over spi (based on ST7789 controller): 16-bit mode.
InterfaceST7789(NanoDisplayBase< InterfaceST7789< I >> &base, int8_t dc, Args &&... data)
DisplayST7789x16(I &intf, int8_t rstPin)
DisplayST7789_240x240x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 240x240x16 lcd display over spi (based on ST7789 controller): 16-bit mode.
void setOffset(lcdint_t ox, lcdint_t oy)
Sets display offset in GDRAM memory.
DisplayST7789_135x240x16_SPI(int8_t rstPin, const SPlatformSpiConfig &config={-1, {-1}, -1, 0, -1, -1})
Inits 135x240x16 lcd display over spi (based on ST7789 controller): 16-bit mode.
int8_t m_rstPin
indicates hardware reset pin used, -1 if it is not required
DisplayST7789_135x240x16_CustomSPI(int8_t rstPin, int8_t dcPin, Args &&... data)
Inits 135x240x16 lcd display over spi (based on ST7789 controller): 16-bit mode.
DisplayST7789_240x240x16(I &intf, int8_t rstPin)