oled 1.0
OLED Graphics Control Library
Loading...
Searching...
No Matches
Display Offset Command

Command and option for configuring the display offset of the OLED. More...

Macros

#define OLED_CMD_SET_DISPLAY_OFFSET   0xD3
#define OLED_CMD_SET_DISPLAY_OFFSET_VALUE   0x00

Detailed Description

Command and option for configuring the display offset of the OLED.

The OLED_CMD_SET_DISPLAY_OFFSET macro defines the command byte used to set the display's vertical offset. The macro OLED_CMD_SET_DISPLAY_OFFSET_VALUE specifies the offset value to be used, typically zero for standard alignment.

Note
These macros allow adjustment of the display's vertical start line, which can be useful for scrolling or custom display layouts.

Usage Example: To set the display offset, send the command OLED_CMD_SET_DISPLAY_OFFSET followed by OLED_CMD_SET_DISPLAY_OFFSET_VALUE.

Macro Definition Documentation

◆ OLED_CMD_SET_DISPLAY_OFFSET

#define OLED_CMD_SET_DISPLAY_OFFSET   0xD3

◆ OLED_CMD_SET_DISPLAY_OFFSET_VALUE

#define OLED_CMD_SET_DISPLAY_OFFSET_VALUE   0x00

Display offset value (usually zero for normal operation)