#[repr(usize)]pub enum Command {
Show 25 variants
SetChargePump {
enable: bool,
},
SetContrast {
contrast: u8,
},
EntireDisplayOn {
ignore_ram: bool,
},
SetDisplayInvert {
inverse: bool,
},
SetDisplayOnOff {
on: bool,
},
ContinuousHorizontalScroll {
left: bool,
page_start: u8,
interval: u8,
page_end: u8,
},
ContinuousVerticalHorizontalScroll {
left: bool,
page_start: u8,
interval: u8,
page_end: u8,
vertical_offset: u8,
},
DeactivateScroll = 46,
ActivateScroll = 47,
SetVerticalScrollArea {
rows_fixed: u8,
rows_scroll: u8,
},
SetLowerColumnStartAddress {
address: u8,
},
SetHigherColumnStartAddress {
address: u8,
},
SetMemoryAddressingMode {
mode: u8,
},
SetColumnAddress {
column_start: u8,
column_end: u8,
},
SetPageAddress {
page_start: u8,
page_end: u8,
},
SetPageStartAddress {
address: u8,
},
SetDisplayStartLine {
line: u8,
},
SetSegmentRemap {
reverse: bool,
},
SetMultiplexRatio {
ratio: u8,
},
SetComScanDirection {
decrement: bool,
},
SetDisplayOffset {
vertical_shift: u8,
},
SetComPins {
alternative: bool,
enable_com: bool,
},
SetDisplayClockDivide {
divide_ratio: u8,
oscillator_frequency: u8,
},
SetPrechargePeriod {
phase1: u8,
phase2: u8,
},
SetVcomDeselect {
level: u8,
},
}
Variants§
SetChargePump
Charge Pump Setting.
SetContrast
SetContrastControl. Double byte command to select 1 out of 256 contrast steps. Contrast increases as the value increases.
EntireDisplayOn
Entire Display On.
SetDisplayInvert
Set Normal Display.
SetDisplayOnOff
Set Display Off.
ContinuousHorizontalScroll
Continuous Horizontal Scroll. Right or Left Horizontal Scroll.
ContinuousVerticalHorizontalScroll
Continuous Vertical and Horizontal Scroll. Vertical and Right Horizontal Scroll.
DeactivateScroll = 46
Deactivate Scroll. Stop scrolling that is configured by scroll commands.
ActivateScroll = 47
Activate Scroll. Start scrolling that is configured by scroll commands.
SetVerticalScrollArea
Set Vertical Scroll Area. Set number of rows in top fixed area. The number of rows in top fixed area is referenced to the top of the GDDRAM (i.e. row 0).
SetLowerColumnStartAddress
Set Lower Column Start Address for Page Addressing Mode.
Set the lower nibble of the column start address register for Page
Addressing Mode using X[3:0]
as data bits. The initial display line
register is reset to 0000b after RESET.
SetHigherColumnStartAddress
Set Higher Column Start Address for Page Addressing Mode.
Set the higher nibble of the column start address register for Page
Addressing Mode using X[3:0]
as data bits. The initial display line
register is reset to 0000b after RESET.
SetMemoryAddressingMode
Set Memory Addressing Mode.
SetColumnAddress
Set Column Address. Setup column start and end address.
SetPageAddress
Set Page Address. Setup page start and end address.
SetPageStartAddress
Set Page Start Address for Page Addressing Mode. Set GDDRAM Page Start
Address (PAGE0~PAGE7) for Page Addressing Mode using X[2:0]
.
SetDisplayStartLine
Set Display Start Line. Set display RAM display start line register from
0-63 using X[5:0]
.
SetSegmentRemap
Set Segment Remap.
SetMultiplexRatio
Set Multiplex Ratio.
SetComScanDirection
Set COM Output Scan Direction.
SetDisplayOffset
Set Display Offset. Set vertical shift by COM from 0-63.
SetComPins
Set COM Pins Hardware Configuration
SetDisplayClockDivide
Set Display Clock Divide Ratio/Oscillator Frequency.
SetPrechargePeriod
Set Pre-charge Period.
SetVcomDeselect
Set VCOMH Deselect Level.