oled 1.0
OLED Graphics Control Library
|
Command and option for setting the OLED display contrast. More...
Macros | |
#define | OLED_CMD_SET_CONTRAST 0x81 |
#define | OLED_CMD_SET_CONTRAST_VALUE 0x7F |
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).
Usage Example: To set the display contrast, send the command OLED_CMD_SET_CONTRAST followed by OLED_CMD_SET_CONTRAST_VALUE.
#define OLED_CMD_SET_CONTRAST 0x81 |
#define OLED_CMD_SET_CONTRAST_VALUE 0x7F |
Contrast level value (default: 0x7F, mid-level contrast)