38 lcduint_t rx = w ? (x + w - 1) : (m_base.width() - 1);
40 this->send((m_rotation & 0x01) ? 0x75: 0x15);
43 this->send( rx < m_base.width() ? rx : (m_base.width() - 1) );
45 this->send((m_rotation & 0x01) ? 0x15: 0x75);
48 this->send(m_base.height() - 1);
98 if ((rotation^m_rotation) & 0x01)
100 m_base.swapDimensions();
102 m_rotation = (rotation & 0x03);
110 ram_mode = 0b00110100;
113 ram_mode = 0b00110111;
116 ram_mode = 0B00100110;
120 ram_mode = 0b00100101;
124 this->send( ram_mode );
145 static const PROGMEM uint8_t s_SSD1351_lcd128x128x16_initData[] =
148 SDL_LCD_SSD1351, 0x00,
156 0xA0, 0x01, 0B00110100,
165 0xC1, 0x03, 0xC8, 0x80, 0xC8,
167 0xB4, 0x03, 0xA0, 0xB5, 0x55,
185 _configureSpiDisplay<I>(this->m_intf,
186 s_SSD1351_lcd128x128x16_initData,
187 sizeof(s_SSD1351_lcd128x128x16_initData));
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_gpioWrite(int pin, int level)
void ssd1306_resetController2(int8_t rstPin, uint8_t delayMs)
Does hardware reset for oled controller.
void setDataMode(uint8_t mode)
void lcd_delay(unsigned long ms)