37 lcduint_t rx = w ? (x + w - 1) : (m_base.width() - 1);
44 this->send(x + (m_rotation == 3 ? 32 : 0));
46 this->send((rx < m_base.width() ? rx : (m_base.width() - 1)) + (m_rotation == 3 ? 32 : 0));
52 this->send(y + (m_rotation == 2 ? 32 : 0));
54 this->send(m_base.height() - 1 + (m_rotation == 2 ? 32 : 0));
90 if ( (rotation ^ m_rotation) & 0x01 )
92 m_base.swapDimensions();
94 m_rotation = (rotation & 0x03);
100 switch ( m_rotation )
103 ram_mode = 0b00000000;
106 ram_mode = 0b01100000;
109 ram_mode = 0b11000000;
112 ram_mode = 0b10100000;
115 this->send(ram_mode | m_rgb_bit);
134 static const PROGMEM uint8_t s_IL9163_lcd128x128x16_initData[] = {
136 SDL_LCD_IL9163, 0x00,
156 0xC0, 0x02, 0x0A, 0x02,
158 0xC5, 0x02, 0x50, 0x5B,
162 0x36, 0x01, 0b00000000,
177 _configureSpiDisplay<I>(this->m_intf,
178 s_IL9163_lcd128x128x16_initData,
179 sizeof(s_IL9163_lcd128x128x16_initData));
187 static const PROGMEM uint8_t s_IL9163_lcd128x160x16_initData[] = {
189 SDL_LCD_IL9163, 0x00,
196 0xC0, 0x02, 0x0A, 0x02,
198 0xC5, 0x02, 0x50, 0x5B,
200 0x36, 0x01, 0b00000000,
215 _configureSpiDisplay<I>(this->m_intf,
216 s_IL9163_lcd128x160x16_initData,
217 sizeof(s_IL9163_lcd128x160x16_initData));
void lcd_gpioWrite(int pin, int level)
void setDataMode(uint8_t mode)
void ssd1306_resetController2(int8_t rstPin, uint8_t delayMs)
Does hardware reset for oled controller.
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.
void lcd_delay(unsigned long ms)