41 this->send(((x+2)>>4) | 0x10);
42 this->send(((x+2) & 0x0f));
58 startBlock(m_column,m_page+1,0);
87 this->send( 0x40 | (line & 0x3F) );
114 this->send(contrast);
135 this->send( 0xA0 | (mode ? 0x00: 0x01 ) );
142 this->send( mode ? 0xC0 : 0xC8 );
159 static const PROGMEM uint8_t s_SH1106_lcd128x64_initData[] = {
161 SDL_LCD_SH1106, 0x00,
192 _configureSpiDisplayCmdModeOnly<I>(this->m_intf,
193 s_SH1106_lcd128x64_initData,
194 sizeof(s_SH1106_lcd128x64_initData));
void displayOn()
Turns on the display, resuming normal output.
uint8_t lcduint_t
internal int type, used by the library.
void setDataMode(uint8_t mode)
Enables either data or command mode on SPI bus.
void endDisplay()
Basic SH1106 deinitialization.
void lcd_gpioWrite(int pin, int level)
Writes value to gpio.
void flipHorizontal(uint8_t mode)
Performs horizontal flip.
SSD1306 HAL IO communication functions.
void ssd1306_resetController2(int8_t rstPin, uint8_t delayMs)
Does hardware reset for oled controller.
void setStartLine(uint8_t line)
Sets start line in GDRAM to begin display content with.
void flipVertical(uint8_t mode)
Performs vertical flip.
void endBlock()
Closes data send operation to lcd display.
void commandStart()
Starts communication with LCD display in command mode.
void nextBlock()
Switches to the start of next RAM page for the block, specified by startBlock().
#define LCD_LOW
Constant corresponds to low level of gpio pin.
Basic structures of nano gfx library.
void startBlock(lcduint_t x, lcduint_t y, lcduint_t w)
Sets block in RAM of lcd display controller to write data to.
void invertMode()
Switches display to inverted mode.
void normalMode()
Switches display back to normal (non-inverted) mode.
void displayOff()
Turns off the display (enters sleep mode).
void beginController()
Basic SH1106 128x64 initialization.
void endController()
Basic SH1106 deinitialization.
uint8_t getStartLine()
Returns the current start line offset in GDRAM.
void setContrast(uint8_t contrast)
Sets display contrast (brightness level).
#define LCD_HIGH
Constant corresponds to high level of gpio pin.
void beginDisplay()
Basic SH1106 initialization.
void lcd_delay(unsigned long ms)
Forces current thread to sleeps for specified number of milliseconds.