oled 1.0
OLED Graphics Control Library
Loading...
Searching...
No Matches
COM Output Scan Direction Command

Command and options for setting the COM output scan direction on the OLED display. More...

Macros

#define OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_NORMAL   0x00
#define OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_REVERSED   0x08
#define OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION   (0xC0 | OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_REVERSED)

Detailed Description

Command and options for setting the COM output scan direction on the OLED display.

These macros define the scan direction for the display's COM (common) output signals.

  • OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_NORMAL configures the normal (default) scanning direction.
  • OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_REVERSED reverses the scan direction, effectively flipping the vertical orientation of the display.

The macro OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION combines the base command with the selected scan direction option.

Note
This setting is useful for adjusting display orientation without modifying graphic data.

Usage Example: Send the command OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION. with the desired configuration byte.

Macro Definition Documentation

◆ OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION

#define OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION   (0xC0 | OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_REVERSED)

Command to set the COM output scan direction

◆ OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_NORMAL

#define OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_NORMAL   0x00

◆ OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_REVERSED

#define OLED_CMD_SET_COM_OUTPUT_SCAN_DIRECTION_REVERSED   0x08