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

Command and options for setting the OLED display multiplex ratio. More...

Macros

#define OLED_CMD_SET_MULTIPLEX_RATIO   0xA8
#define OLED_CMD_SET_MULTIPLEX_RATIO_16_MUX   0x1F
#define OLED_CMD_SET_MULTIPLEX_RATIO_32_MUX   0x2F
#define OLED_CMD_SET_MULTIPLEX_RATIO_64_MUX   0x3F

Detailed Description

Command and options for setting the OLED display multiplex ratio.

The OLED_CMD_SET_MULTIPLEX_RATIO macro defines the command byte used to configure the multiplex ratio of the OLED display. The macros:

  • OLED_CMD_SET_MULTIPLEX_RATIO_16_MUX
  • OLED_CMD_SET_MULTIPLEX_RATIO_32_MUX
  • OLED_CMD_SET_MULTIPLEX_RATIO_64_MUX specify the multiplex ratio options for 16, 32, and 64 multiplexed COM lines respectively.
Note
These settings determine how many rows of the display are multiplexed and affect the vertical resolution and power consumption.

Usage Example: To set the multiplex ratio, send the command OLED_CMD_SET_MULTIPLEX_RATIO followed by one of the multiplex ratio macros corresponding to the desired configuration.

Macro Definition Documentation

◆ OLED_CMD_SET_MULTIPLEX_RATIO

#define OLED_CMD_SET_MULTIPLEX_RATIO   0xA8

◆ OLED_CMD_SET_MULTIPLEX_RATIO_16_MUX

#define OLED_CMD_SET_MULTIPLEX_RATIO_16_MUX   0x1F

Multiplex ratio for 16 COM lines

◆ OLED_CMD_SET_MULTIPLEX_RATIO_32_MUX

#define OLED_CMD_SET_MULTIPLEX_RATIO_32_MUX   0x2F

Multiplex ratio for 32 COM lines

◆ OLED_CMD_SET_MULTIPLEX_RATIO_64_MUX

#define OLED_CMD_SET_MULTIPLEX_RATIO_64_MUX   0x3F

Multiplex ratio for 64 COM lines