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

Command and options for controlling the OLED display power state. More...

Macros

#define OLED_CMD_SET_DISPLAY   0xAE
#define OLED_CMD_SET_DISPLAY_ON   0x01
#define OLED_CMD_SET_DISPLAY_OFF   0x00

Detailed Description

Command and options for controlling the OLED display power state.

The OLED_CMD_SET_DISPLAY macro defines the command byte used to control the display power state. The Macros:

  • OLED_CMD_SET_DISPLAY_ON
  • OLED_CMD_SET_DISPLAY_OFF specify the options to turn the display on or off, respectively. These macros are used to configure the display's operational status via I2C commands.

Usage Example:

  • To turn the display on, send the command (OLED_CMD_SET_DISPLAY | OLED_CMD_SET_DISPLAY_ON).
  • To turn the display off, send the command OLED_CMD_SET_DISPLAY or (OLED_CMD_SET_DISPLAY | OLED_CMD_SET_DISPLAY_OFF) for better readability.

Macro Definition Documentation

◆ OLED_CMD_SET_DISPLAY

#define OLED_CMD_SET_DISPLAY   0xAE

◆ OLED_CMD_SET_DISPLAY_OFF

#define OLED_CMD_SET_DISPLAY_OFF   0x00

Turn the OLED display off

◆ OLED_CMD_SET_DISPLAY_ON

#define OLED_CMD_SET_DISPLAY_ON   0x01

Turn the OLED display on