38 lcduint_t rx = w ? (x + w - 1) : (m_base.width() - 1);
45 this->send(x + (m_rotation == 3 ? 32 : 0));
47 this->send((rx < m_base.width() ? rx : (m_base.width() - 1))
48 + (m_rotation == 3 ? 32 : 0));
54 this->send(y + (m_rotation == 2 ? 32: 0));
56 this->send(m_base.height() - 1 + (m_rotation == 2 ? 32: 0));
97 if ((rotation^m_rotation) & 0x01)
99 m_base.swapDimensions();
101 m_rotation = (rotation & 0x03);
110 ram_mode = 0b00000000;
113 ram_mode = 0b01100000;
116 ram_mode = 0b11000000;
119 ram_mode = 0b10100000;
122 this->send( ram_mode | m_rgb_bit );
143 static const PROGMEM uint8_t s_IL9163_lcd128x128x16_initData[] =
146 SDL_LCD_IL9163, 0x00,
166 0xC0, 0x02, 0x0A, 0x02,
168 0xC5, 0x02, 0x50, 0x5B,
172 0x36, 0x01, 0b00000000,
188 _configureSpiDisplay<I>(this->m_intf,
189 s_IL9163_lcd128x128x16_initData,
190 sizeof(s_IL9163_lcd128x128x16_initData));
198 static const PROGMEM uint8_t s_IL9163_lcd128x160x16_initData[] =
201 SDL_LCD_IL9163, 0x00,
208 0xC0, 0x02, 0x0A, 0x02,
210 0xC5, 0x02, 0x50, 0x5B,
212 0x36, 0x01, 0b00000000,
228 _configureSpiDisplay<I>(this->m_intf,
229 s_IL9163_lcd128x160x16_initData,
230 sizeof(s_IL9163_lcd128x160x16_initData));
void lcd_gpioWrite(int pin, int level)
void spiDataMode(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)