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

Command and option for setting the vertical start line of the OLED display. More...

Macros

#define OLED_CMD_SET_DISPLAY_START_LINE_OFFSET   0x00
#define OLED_CMD_SET_DISPLAY_START_LINE   (0x40 | OLED_CMD_SET_DISPLAY_START_LINE_OFFSET)

Detailed Description

Command and option for setting the vertical start line of the OLED display.

The macro OLED_CMD_SET_DISPLAY_START_LINE_OFFSET specifies the offset value for the display start line, with valid values in the range 0x00 to 0x3F. The macro OLED_CMD_SET_DISPLAY_START_LINE combines the base command with the offset to set the vertical start line position for the display content.

Note
These macros allow adjustment of which scan line is mapped to the top of the OLED screen, useful for shifting or custom screen arrangements.

Usage Example: To set the display start line, send the command OLED_CMD_SET_DISPLAY_START_LINE.

Macro Definition Documentation

◆ OLED_CMD_SET_DISPLAY_START_LINE

#define OLED_CMD_SET_DISPLAY_START_LINE   (0x40 | OLED_CMD_SET_DISPLAY_START_LINE_OFFSET)

Command to set the vertical start line position

◆ OLED_CMD_SET_DISPLAY_START_LINE_OFFSET

#define OLED_CMD_SET_DISPLAY_START_LINE_OFFSET   0x00