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

Command and options for setting the OLED display mode (normal or inverse). More...

Macros

#define OLED_CMD_SET_DISPLAY_MODE_NORMAL   0x00
#define OLED_CMD_SET_DISPLAY_MODE_INVERSE   0x01
#define OLED_CMD_SET_DISPLAY_MODE   (0xA6 | OLED_CMD_SET_DISPLAY_MODE_NORMAL)

Detailed Description

Command and options for setting the OLED display mode (normal or inverse).

The macros control the display pixel rendering mode:

  • OLED_CMD_SET_DISPLAY_MODE_NORMAL sets the display to normal mode, where pixels are lit according to the RAM content.
  • OLED_CMD_SET_DISPLAY_MODE_INVERSE sets the display to inverse mode, where pixels are inverted (lit pixels become off and vice versa).

The macro OLED_CMD_SET_DISPLAY_MODE combines the base command with the normal mode option by default.

Note
This setting allows for visual effects or visibility adjustments.

Usage Example: To set the display to normal mode, send the command OLED_CMD_SET_DISPLAY_MODE.

Macro Definition Documentation

◆ OLED_CMD_SET_DISPLAY_MODE

#define OLED_CMD_SET_DISPLAY_MODE   (0xA6 | OLED_CMD_SET_DISPLAY_MODE_NORMAL)

Command to set display mode (default: normal)

◆ OLED_CMD_SET_DISPLAY_MODE_INVERSE

#define OLED_CMD_SET_DISPLAY_MODE_INVERSE   0x01

◆ OLED_CMD_SET_DISPLAY_MODE_NORMAL

#define OLED_CMD_SET_DISPLAY_MODE_NORMAL   0x00