SSD1306 OLED display driver
1.4.10
This library is developed to control SSD1306/SSD1331 RGB i2c/spi OLED displays and spi PCD8544 LED display
|
#include "hal/io.h"
Go to the source code of this file.
Macros | |
#define | RGB_COLOR8(r, g, b) ( (r & 0xE0) | ((g >> 3)&0x1C) | (b>>6) ) |
Functions | |
void | ssd1331_setColor (uint16_t color) |
Sets default color, generated by RGB_COLOR8 macros. More... | |
void | ssd1331_setRgbColor (uint8_t r, uint8_t g, uint8_t b) |
Sets default color. More... | |
void | ssd1331_96x64_init (void) |
Inits 96x64 RGB OLED display (based on SSD1331 controller). More... | |
void | ssd1331_96x64_spi_init (int8_t rstPin, int8_t cesPin, int8_t dcPin) |
Inits 96x64 RGB OLED display over spi (based on SSD1331 controller). More... | |
support for RGB OLED 96x64 display
Definition in file ssd1331_96x64.h.
#define RGB_COLOR8 | ( | r, | |
g, | |||
b | |||
) | ( (r & 0xE0) | ((g >> 3)&0x1C) | (b>>6) ) |
Macro to generate 8-bit color for SSD1331 OLED display
Definition at line 39 of file ssd1331_96x64.h.
void ssd1331_setColor | ( | uint16_t | color | ) |
Sets default color, generated by RGB_COLOR8 macros.
Sets color generated by RGB_COLOR8 macros. For now only 8-bit RGB mode of SSD1331 display is supported
color | - new color to use for monochrome operations. |
Definition at line 97 of file ssd1331_96x64.c.
void ssd1331_setRgbColor | ( | uint8_t | r, |
uint8_t | g, | ||
uint8_t | b | ||
) |
Sets default color.
Sets default color for monochrome operations. For now only 8-bit RGB mode of SSD1331 display is supported
r | - red in 0-255 range. |
g | - green in 0-255 range. |
b | - blue in 0-255 range. |
Definition at line 102 of file ssd1331_96x64.c.