54 template <
typename... Args>
113 const int8_t m_dc = -1;
116 uint8_t m_rotation = 0x00;
117 static const uint8_t m_rgb_bit = 0b00000000;
136 , m_rstPin( rstPin ) { }
144 void begin()
override;
173 void begin()
override;
196 , m_spi( *
this, config.dc,
200 config.frequency ?: 8000000,
207 void begin()
override;
239 void begin()
override;
262 , m_spi( *
this, config.dc,
266 config.frequency ?: 8000000,
273 void begin()
override;
284 #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 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.
InterfaceST7735(NanoDisplayBase< InterfaceST7735< I >> &base, int8_t dc, Args &&... data)
DisplayST7735_128x128x16(I &intf, int8_t rstPin)
DisplayST7735x16(I &intf, int8_t rstPin)
void spiDataMode(uint8_t mode)
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.