SSD1306 OLED display driver
1.3.5
This library is developed to control SSD1306 i2c/spi OLED display
|
Functions | |
void | pcd8544_84x48_init () |
Inits 84x48 LED display (based on PCD8544 controller). More... | |
void | pcd8544_84x48_spi_init (int8_t rstPin, int8_t cesPin, int8_t dcPin) |
void | sh1106_128x64_init () |
Inits 128x64 OLED display (based on SH1106 controller). More... | |
void | sh1106_128x64_i2c_init () |
Inits 128x64 OLED display over i2c (based on SH1106 controller). More... | |
void | sh1106_128x64_spi_init (int8_t rstPin, int8_t cesPin, int8_t dcPin) |
Inits 128x64 OLED display over spi (based on SH1106 controller). More... | |
void | ssd1306_128x32_i2c_init () |
Inits 128x32 OLED display over i2c (based on SSD1306 controller). More... | |
void | ssd1306_128x32_init () |
Inits 128x32 OLED display (based on ssd1306 controller). More... | |
void | ssd1306_128x64_init () |
Inits 128x64 OLED display (based on SSD1306 controller). More... | |
void | ssd1306_128x64_i2c_init () |
Inits 128x64 OLED display over i2c (based on SSD1306 controller). More... | |
void | ssd1306_128x64_spi_init (int8_t rstPin, int8_t cesPin, int8_t dcPin) |
Inits 128x64 OLED display over spi (based on SSD1306 controller). More... | |
void | ssd1306_init () __attribute__((deprecated)) |
Inits 128x64 OLED display over i2c (based on SSD1306 controller). More... | |
void | ssd1306_displayOff () |
void | ssd1306_displayOn () |
void | ssd1306_invertMode () |
void | ssd1306_normalMode () |
uint8_t | ssd1306_displayHeight () |
uint8_t | ssd1306_displayWidth () |
void pcd8544_84x48_init | ( | ) |
Inits 84x48 LED display (based on PCD8544 controller).
Inits 84x48 LED display (based on PCD8544 controller). User must init communication interface (i2c, spi) prior to calling this function.
Definition at line 62 of file pcd8544_84x48.c.
void pcd8544_84x48_spi_init | ( | int8_t | rstPin, |
int8_t | cesPin, | ||
int8_t | dcPin | ||
) |
Inits 84x48 LED display over spi (based on PCD8544 controller)
rstPin | - pin controlling LCD reset (-1 if not used) |
cesPin | - chip enable pin to LCD slave (-1 if not used) |
dcPin | - data/command pin to control LCD dc (required) |
Definition at line 78 of file pcd8544_84x48.c.
void sh1106_128x64_i2c_init | ( | ) |
Inits 128x64 OLED display over i2c (based on SH1106 controller).
Inits 128x64 OLED display over i2c (based on SH1106 controller) This function uses hardcoded pins for i2c communication, depending on your hardware. If you use non-standard pins in your project, please perform call ssd1306_i2cInitEx() and sh1106_128x64_init().
Definition at line 90 of file sh1106_128x64.c.
void sh1106_128x64_init | ( | ) |
Inits 128x64 OLED display (based on SH1106 controller).
Inits 128x64 OLED display (based on SH1106 controller). User must init communication interface (i2c or spi) prior to calling this function.
Definition at line 76 of file sh1106_128x64.c.
void sh1106_128x64_spi_init | ( | int8_t | rstPin, |
int8_t | cesPin, | ||
int8_t | dcPin | ||
) |
Inits 128x64 OLED display over spi (based on SH1106 controller).
Inits 128x64 OLED display over spi (based on SH1106 controller)
rstPin | - pin controlling LCD reset (-1 if not used) |
cesPin | - chip enable pin to LCD slave (-1 if not used) |
dcPin | - data/command pin to control LCD dc (required) |
Definition at line 96 of file sh1106_128x64.c.
void ssd1306_128x32_i2c_init | ( | ) |
Inits 128x32 OLED display over i2c (based on SSD1306 controller).
Inits 128x32 OLED display over i2c (based on SSD1306 controller) This function uses hardcoded pins for i2c communication, depending on your hardware. If you use non-standard pins in your project, please perform call ssd1306_i2cInitEx() and ssd1306_128x32_init().
Definition at line 92 of file ssd1306_128x32.c.
void ssd1306_128x32_init | ( | ) |
Inits 128x32 OLED display (based on ssd1306 controller).
Inits 128x32 OLED display (based on ssd1306 controller) spi or i2c bus must be initialized prior to calling this function.
Definition at line 76 of file ssd1306_128x32.c.
void ssd1306_128x64_i2c_init | ( | ) |
Inits 128x64 OLED display over i2c (based on SSD1306 controller).
Inits 128x64 OLED display over i2c (based on SSD1306 controller) This function uses hardcoded pins for i2c communication, depending on your hardware. If you use non-standard pins in your project, please perform call ssd1306_i2cInitEx() and ssd1306_128x64_init().
Definition at line 97 of file ssd1306_128x64.c.
void ssd1306_128x64_init | ( | ) |
Inits 128x64 OLED display (based on SSD1306 controller).
Inits 128x64 OLED display (based on SSD1306 controller). User must init communication interface (i2c, spi) prior to calling this function.
Definition at line 82 of file ssd1306_128x64.c.
void ssd1306_128x64_spi_init | ( | int8_t | rstPin, |
int8_t | cesPin, | ||
int8_t | dcPin | ||
) |
Inits 128x64 OLED display over spi (based on SSD1306 controller).
Inits 128x64 OLED display over spi (based on SSD1306 controller)
rstPin | - pin controlling LCD reset (-1 if not used) |
cesPin | - chip enable pin to LCD slave (-1 if not used) |
dcPin | - data/command pin to control LCD dc (required) |
Definition at line 103 of file ssd1306_128x64.c.
uint8_t ssd1306_displayHeight | ( | ) |
Returns display height in pixels
Definition at line 36 of file ssd1306.cpp.
void ssd1306_displayOff | ( | ) |
Turns off display
Definition at line 78 of file ssd1306.cpp.
void ssd1306_displayOn | ( | ) |
Turns on display
Definition at line 84 of file ssd1306.cpp.
uint8_t ssd1306_displayWidth | ( | ) |
Returns display width in pixels
Definition at line 41 of file ssd1306.cpp.
void ssd1306_init | ( | ) |
Inits 128x64 OLED display over i2c (based on SSD1306 controller).
Inits 128x64 OLED display over i2c (based on SSD1306 controller) This function uses hardcoded pins for i2c communication, depending on your hardware. If you use non-standard pins in your project, please perform call ssd1306_i2cInitEx() and ssd1306_128x64_init().
Definition at line 76 of file ssd1306_128x64.c.
void ssd1306_invertMode | ( | ) |
Switches display to inverse mode. LCD will display 0-pixels as white, and 1-pixels as black.
Definition at line 442 of file ssd1306.cpp.
void ssd1306_normalMode | ( | ) |
Switches display to normal mode.
Definition at line 447 of file ssd1306.cpp.