SSD1306 OLED display driver
1.5.0
This library is developed to control SSD1306/SSD1331 RGB i2c/spi OLED displays and spi PCD8544 LED display
|
The functions can be used only for OLEDs with ssd1306 controller. More...
Functions | |
void | ssd1306_displayOff (void) |
void | ssd1306_displayOn (void) |
void | ssd1306_setContrast (uint8_t contrast) |
void | ssd1306_invertMode (void) |
void | ssd1306_normalMode (void) |
void | ssd1306_flipHorizontal (uint8_t mode) |
performs horizontal flip More... | |
void | ssd1306_flipVertical (uint8_t mode) |
performs vertical flip More... | |
The functions can be used only for OLEDs with ssd1306 controller.
Use this functions if you have ssd1306-based display and need to change display orientation, invert display content in hardware.
void ssd1306_displayOff | ( | void | ) |
Turns off display
Definition at line 90 of file ssd1306_generic.c.
void ssd1306_displayOn | ( | void | ) |
Turns on display
Definition at line 96 of file ssd1306_generic.c.
void ssd1306_flipHorizontal | ( | uint8_t | mode | ) |
performs horizontal flip
Performs horizontal flip. If you need to turn display by 180 degree, please use both ssd1306_flipHorizontal() and ssd1306_flipVertical().
mode | - 0 to disable horizontal flip 1 to enable horizontal flip |
Definition at line 857 of file ssd1306_generic.c.
void ssd1306_flipVertical | ( | uint8_t | mode | ) |
performs vertical flip
Performs vertical flip. If you need to turn display by 180 degree, please use both ssd1306_flipHorizontal() and ssd1306_flipVertical().
mode | - 0 to disable vertical flip 1 to enable vertical flip |
Definition at line 865 of file ssd1306_generic.c.
void ssd1306_invertMode | ( | void | ) |
Switches display to inverse mode. LCD will display 0-pixels as white, and 1-pixels as black.
Definition at line 841 of file ssd1306_generic.c.
void ssd1306_normalMode | ( | void | ) |
Switches display to normal mode.
Definition at line 849 of file ssd1306_generic.c.
void ssd1306_setContrast | ( | uint8_t | contrast | ) |
Set display contrast, ie light intensity
contrast | - contrast value to see, refer to ssd1306 datasheet |
Definition at line 101 of file ssd1306_generic.c.