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

Command and options for configuring the OLED display memory addressing mode. More...

Macros

#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE   0x20
#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE_HORIZONTAL   0x00
#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE_VERTICAL   0x01
#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE_PAGE   0x02

Detailed Description

Command and options for configuring the OLED display memory addressing mode.

The OLED_CMD_SET_MEMORY_ADDRESSING_MODE macro defines the command byte used to set how the display RAM is accessed and updated. The addressing modes includes:

  • OLED_CMD_SET_MEMORY_ADDRESSING_MODE_HORIZONTAL: Addresses increment horizontally across columns then move vertically.
  • OLED_CMD_SET_MEMORY_ADDRESSING_MODE_VERTICAL: Addresses increment vertically down rows then move horizontally.
  • OLED_CMD_SET_MEMORY_ADDRESSING_MODE_PAGE: Addresses increment within pages (typically 8 pixel rows) before moving to the next page.
Note
These modes affect how data is written to the display and can be chosen based on application needs for memory access patterns and performance.

Usage Example: To set page addressing mode, send the command OLED_CMD_SET_MEMORY_ADDRESSING_MODE followed by OLED_CMD_SET_MEMORY_ADDRESSING_MODE_PAGE.

Macro Definition Documentation

◆ OLED_CMD_SET_MEMORY_ADDRESSING_MODE

#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE   0x20

◆ OLED_CMD_SET_MEMORY_ADDRESSING_MODE_HORIZONTAL

#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE_HORIZONTAL   0x00

Horizontal addressing mode

◆ OLED_CMD_SET_MEMORY_ADDRESSING_MODE_PAGE

#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE_PAGE   0x02

Page addressing mode

◆ OLED_CMD_SET_MEMORY_ADDRESSING_MODE_VERTICAL

#define OLED_CMD_SET_MEMORY_ADDRESSING_MODE_VERTICAL   0x01

Vertical addressing mode