SSD1306 OLED display driver  1.8.2
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
Classes | Macros | Enumerations | Functions | Variables
lcd_common.h File Reference
#include "ssd1306_hal/io.h"

Go to the source code of this file.

Classes

struct  ssd1306_lcd_t
 

Macros

#define s_displayHeight   ssd1306_lcd.height
 
#define s_displayWidth   ssd1306_lcd.width
 
#define g_lcd_type   ssd1306_lcd.type
 
#define ssd1306_setRamBlock   ssd1306_lcd.set_block
 Sets block in RAM of lcd display controller to write data to. More...
 
#define ssd1306_nextRamPage   ssd1306_lcd.next_page
 
#define ssd1306_sendPixels   ssd1306_lcd.send_pixels1
 
#define ssd1306_sendPixelsBuffer   ssd1306_lcd.send_pixels_buffer1
 
#define ssd1306_sendPixel8   ssd1306_lcd.send_pixels8
 Sends RGB pixel encoded in 3-3-2 format to OLED driver. Sends RGB pixel encoded in 3-3-2 format to OLED driver. More...
 
#define SSD1306_COMPAT_SPI_BLOCK_8BIT_CMDS(column_cmd, row_cmd)
 
#define CONTROLLER_NATIVE_SPI_BLOCK_8BIT_CMDS(column_cmd, row_cmd)
 
#define SSD1306_COMPAT_SEND_PIXELS_RGB8_CMDS()
 
#define SSD1306_COMPAT_SEND_PIXELS_RGB16_CMDS()
 

Enumerations

enum  lcd_type_t {
  LCD_TYPE_SSD1306, LCD_TYPE_PCD8544, LCD_TYPE_SH1106, LCD_TYPE_SSD1331,
  LCD_TYPE_CUSTOM
}
 
enum  lcd_mode_t { LCD_MODE_NORMAL = 0, LCD_MODE_SSD1306_COMPAT = 1 }
 

Functions

void ssd1306_sendData (uint8_t data) __attribute__((deprecated))
 
void ssd1306_configureI2cDisplay (const uint8_t *config, uint8_t configSize)
 Sends configuration being passed to lcd display i2c/spi controller. More...
 
void ssd1306_configureSpiDisplay (const uint8_t *config, uint8_t configSize)
 Sends configuration being passed to lcd display spi controller. More...
 
void ssd1306_configureSpiDisplay2 (const uint8_t *config, uint8_t configSize)
 Sends configuration being passed to lcd display spi controller. More...
 
void ssd1306_setMode (lcd_mode_t mode)
 Sets library display mode for direct draw functions. More...
 
void ssd1306_resetController (int8_t rstPin, uint8_t delayMs)
 Does hardware reset for oled controller. More...
 

Variables

ssd1306_lcd_t ssd1306_lcd
 

Detailed Description

global lcd settings

Definition in file lcd_common.h.