SSD1306 OLED display driver  1.4.6
This library is developed to control SSD1306/SSD1331 RGB i2c/spi OLED displays and spi PCD8544 LED display
Macros | Functions
ssd1331_96x64.h File Reference
#include <stdint.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 ()
 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...
 

Detailed Description

support for RGB OLED 96x64 display

Definition in file ssd1331_96x64.h.

Macro Definition Documentation

◆ RGB_COLOR8

#define RGB_COLOR8 (   r,
  g,
 
)    ( (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.

Function Documentation

◆ ssd1331_setColor()

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

Parameters
color- new color to use for monochrome operations.

Definition at line 98 of file ssd1331_96x64.c.

◆ ssd1331_setRgbColor()

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

Parameters
r- red in 0-255 range.
g- green in 0-255 range.
b- blue in 0-255 range.

Definition at line 103 of file ssd1331_96x64.c.