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

Command and option for setting the OLED display contrast. More...

Macros

#define OLED_CMD_SET_CONTRAST   0x81
#define OLED_CMD_SET_CONTRAST_VALUE   0x7F

Detailed Description

Command and option for setting the OLED display contrast.

The macro OLED_CMD_SET_CONTRAST defines the command byte used to adjust the contrast level of the OLED display. The macro OLED_CMD_SET_CONTRAST_VALUE specifies the contrast intensity value, typically ranging from 0x00 (lowest) to 0xFF (highest).

Note
This setting controls the brightness and visibility of the displayed content.

Usage Example: To set the display contrast, send the command OLED_CMD_SET_CONTRAST followed by OLED_CMD_SET_CONTRAST_VALUE.

Macro Definition Documentation

◆ OLED_CMD_SET_CONTRAST

#define OLED_CMD_SET_CONTRAST   0x81

◆ OLED_CMD_SET_CONTRAST_VALUE

#define OLED_CMD_SET_CONTRAST_VALUE   0x7F

Contrast level value (default: 0x7F, mid-level contrast)