SSD1306Ascii

Classes | Macros | Variables
SSD1306init.h File Reference

Display controller initialization commands. More...

This graph shows which files directly or indirectly include this file:

## Classes
struct | DevType
| Device initialization structure. More...

## Macros
#define | MEM_TYPE
#define | SH1106_PUMP_OFF 0X8A
#define | SH1106_PUMP_ON 0X8B
#define | SH1106_SET_PUMP_MODE 0XAD
#define | SH1106_SET_PUMP_VOLTAGE 0X30
#define | SSD1306_CHARGEPUMP 0x8D
#define | SSD1306_COMSCANDEC 0xC8
#define | SSD1306_COMSCANINC 0xC0
#define | SSD1306_DISPLAYALLON 0xA5
#define | SSD1306_DISPLAYALLON_RESUME 0xA4
#define | SSD1306_DISPLAYOFF 0xAE
#define | SSD1306_DISPLAYON 0xAF
#define | SSD1306_INVERTDISPLAY 0xA7
#define | SSD1306_MEMORYMODE 0x20
#define | SSD1306_NOP 0XE3
#define | SSD1306_NORMALDISPLAY 0xA6
#define | SSD1306_SEGREMAP 0xA0
#define | SSD1306_SETCOMPINS 0xDA
#define | SSD1306_SETCONTRAST 0x81
#define | SSD1306_SETDISPLAYCLOCKDIV 0xD5
#define | SSD1306_SETDISPLAYOFFSET 0xD3
#define | SSD1306_SETHIGHCOLUMN 0x10
#define | SSD1306_SETLOWCOLUMN 0x00
#define | SSD1306_SETMULTIPLEX 0xA8
#define | SSD1306_SETPRECHARGE 0xD9
#define | SSD1306_SETSTARTLINE 0x40
#define | SSD1306_SETSTARTPAGE 0XB0
#define | SSD1306_SETVCOMDETECT 0xDB

## Variables
static const DevType MEM_TYPE | Adafruit128x32
static const uint8_t MEM_TYPE | Adafruit128x32init []
static const DevType MEM_TYPE | Adafruit128x64
static const uint8_t MEM_TYPE | Adafruit128x64init []
static const DevType MEM_TYPE | MicroOLED64x48
static const uint8_t MEM_TYPE | MicroOLED64x48init []
static const DevType MEM_TYPE | SH1106_128x64
static const uint8_t MEM_TYPE | SH1106_128x64init []

## Detailed Description

Display controller initialization commands.

## Macro Definition Documentation

## ◆ MEM_TYPE

#define MEM_TYPE

Handle AVR flash addressing.

## ◆ SH1106_PUMP_OFF

#define SH1106_PUMP_OFF 0X8A

Second byte charge pump off.

## ◆ SH1106_PUMP_ON

#define SH1106_PUMP_ON 0X8B

Second byte charge pump on.

## ◆ SH1106_SET_PUMP_MODE

#define SH1106_SET_PUMP_MODE 0XAD

First byte of set charge pump mode

## ◆ SH1106_SET_PUMP_VOLTAGE

#define SH1106_SET_PUMP_VOLTAGE 0X30

Set Pump voltage value: (30H~33H) 6.4, 7.4, 8.0 (POR), 9.0.

## ◆ SSD1306_CHARGEPUMP

#define SSD1306_CHARGEPUMP 0x8D

Enable or disable charge pump. Follow with 0X14 enable, 0X10 disable.

## ◆ SSD1306_COMSCANDEC

#define SSD1306_COMSCANDEC 0xC8

Set COM output scan direction reversed.

## ◆ SSD1306_COMSCANINC

#define SSD1306_COMSCANINC 0xC0

Set COM output scan direction normal.

## ◆ SSD1306_DISPLAYALLON

#define SSD1306_DISPLAYALLON 0xA5

Force display on regardless of GRAM content.

## ◆ SSD1306_DISPLAYALLON_RESUME

#define SSD1306_DISPLAYALLON_RESUME 0xA4

Resume display from GRAM content.

## ◆ SSD1306_DISPLAYOFF

#define SSD1306_DISPLAYOFF 0xAE

Set Display off.

## ◆ SSD1306_DISPLAYON

#define SSD1306_DISPLAYON 0xAF

Set Display on.

## ◆ SSD1306_INVERTDISPLAY

#define SSD1306_INVERTDISPLAY 0xA7

Set Inverse Display.

## ◆ SSD1306_MEMORYMODE

#define SSD1306_MEMORYMODE 0x20

Set Memory Addressing Mode.

## ◆ SSD1306_NOP

#define SSD1306_NOP 0XE3

No Operation Command.

## ◆ SSD1306_NORMALDISPLAY

#define SSD1306_NORMALDISPLAY 0xA6

Set Normal Display.

## ◆ SSD1306_SEGREMAP

#define SSD1306_SEGREMAP 0xA0

Set Segment Re-map between data column and the segment driver.

## ◆ SSD1306_SETCOMPINS

#define SSD1306_SETCOMPINS 0xDA

Sets COM signals pin configuration to match the OLED panel layout.

## ◆ SSD1306_SETCONTRAST

#define SSD1306_SETCONTRAST 0x81

Set Display Contrast to one of 256 steps.

## ◆ SSD1306_SETDISPLAYCLOCKDIV

#define SSD1306_SETDISPLAYCLOCKDIV 0xD5

Set Display Clock Divide Ratio/ Oscillator Frequency.

## ◆ SSD1306_SETDISPLAYOFFSET

#define SSD1306_SETDISPLAYOFFSET 0xD3

Set Display Offset.

## ◆ SSD1306_SETHIGHCOLUMN

#define SSD1306_SETHIGHCOLUMN 0x10

Set Higher Column Start Address for Page Addressing Mode.

## ◆ SSD1306_SETLOWCOLUMN

#define SSD1306_SETLOWCOLUMN 0x00

Set Lower Column Start Address for Page Addressing Mode.

## ◆ SSD1306_SETMULTIPLEX

#define SSD1306_SETMULTIPLEX 0xA8

Set Multiplex Ratio from 16 to 63.

## ◆ SSD1306_SETPRECHARGE

#define SSD1306_SETPRECHARGE 0xD9

Set Pre-charge Period

## ◆ SSD1306_SETSTARTLINE

#define SSD1306_SETSTARTLINE 0x40

Set display RAM display start line register from 0 - 63.

## ◆ SSD1306_SETSTARTPAGE

#define SSD1306_SETSTARTPAGE 0XB0

Set GDDRAM Page Start Address.

## ◆ SSD1306_SETVCOMDETECT

#define SSD1306_SETVCOMDETECT 0xDB

This command adjusts the VCOMH regulator output.

## Variable Documentation

## ◆ Adafruit128x32

const DevType MEM_TYPE Adafruit128x32
| static

Initialize a 128x32 SSD1306 oled display.

## ◆ Adafruit128x32init

const uint8_t MEM_TYPE Adafruit128x32init[]
| static

Initialization commands for a 128x32 SSD1306 oled display.

## ◆ Adafruit128x64

const DevType MEM_TYPE Adafruit128x64
| static

Initialize a 128x64 oled display.

## ◆ Adafruit128x64init

const uint8_t MEM_TYPE Adafruit128x64init[]
| static

Initialization commands for a 128x64 SSD1306 oled display.

## ◆ MicroOLED64x48

const DevType MEM_TYPE MicroOLED64x48
| static

Initialize a 64x48 Micro OLED display.

## ◆ MicroOLED64x48init

const uint8_t MEM_TYPE MicroOLED64x48init[]
| static

Initialization commands for a 64x48 Micro OLED display (by r7)

## ◆ SH1106_128x64

const DevType MEM_TYPE SH1106_128x64
| static

Initialize a 128x64 oled SH1106 display.

## ◆ SH1106_128x64init

const uint8_t MEM_TYPE SH1106_128x64init[]
| static

Initialization commands for a 128x64 SH1106 oled display.