public class SSD1306MessageFactory extends Object
https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
Modifier and Type | Class and Description |
---|---|
static class |
SSD1306MessageFactory.MemoryAddressingMode |
static class |
SSD1306MessageFactory.ScrollDirection |
Modifier and Type | Field and Description |
---|---|
static byte[] |
DISABLE_SCROLLING |
static byte[] |
DISPLAY_RESET |
static byte[] |
DISPLAY_RESUME |
static byte[] |
ENABLE_SCROLLING |
static byte[] |
TURN_OFF |
static byte[] |
TURN_ON |
Constructor and Description |
---|
SSD1306MessageFactory() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
setChargePump(boolean enabled) |
static byte[] |
setColumnAddress(byte startAddress,
byte endAddress)
Setup column start and end address.
|
static byte[] |
setCOMPinsConfig(boolean sequential,
boolean leftRightRemap) |
static byte[] |
setContrast(byte contrast) |
static byte[] |
setDisplayClock(byte divideRatio,
byte oscillatorFrequency) |
static byte[] |
setDisplayInverse(boolean inverse) |
static byte[] |
setDisplayOffset(int offset) |
static byte[] |
setDisplayStartLine(int line) |
static byte[] |
setHigherColumnStartAddress(byte address)
Set the higher nibble of the column start address register for Page
Addressing Mode.
|
static byte[] |
setHorizontalFlip(boolean flip) |
static byte[] |
setHorizontalScroll(SSD1306MessageFactory.ScrollDirection direction,
byte startAddress,
byte endAddress,
byte speed) |
static byte[] |
setLowerColumnStartAddress(byte address)
Set the lower nibble of the column start address register for Page
Addressing Mode.
|
static byte[] |
setMemoryAddressingMode(SSD1306MessageFactory.MemoryAddressingMode mode) |
static byte[] |
setMultiplexRatio(int multiplexRatio) |
static byte[] |
setPageAddress(byte startAddress,
byte endAddress)
Setup page start and end address.
|
static byte[] |
setPrechargePeriod(byte phase1Period,
byte phase2Period) |
static byte[] |
setRAMPageStartAddress(byte address)
Set GDDRAM Page Start Address (PAGE0~PAGE7) for Page Addressing Mode.
|
static byte[] |
setVcomhDeselectLevel(byte level) |
static byte[] |
setVerticalAndHorizontalScroll(SSD1306MessageFactory.ScrollDirection direction,
byte startAddress,
byte endAddress,
byte speed,
byte verticalOffset) |
static byte[] |
setVerticalFlip(boolean flip) |
static byte[] |
setVerticalScrollArea(byte fixedRows,
byte scrolledRows)
Sets vertical scroll area.
|
public static final byte[] DISPLAY_RESUME
public static final byte[] DISPLAY_RESET
public static final byte[] TURN_OFF
public static final byte[] TURN_ON
public static final byte[] DISABLE_SCROLLING
public static final byte[] ENABLE_SCROLLING
public static final byte[] setContrast(byte contrast)
public static final byte[] setDisplayInverse(boolean inverse)
public static final byte[] setHorizontalScroll(SSD1306MessageFactory.ScrollDirection direction, byte startAddress, byte endAddress, byte speed)
public static final byte[] setVerticalAndHorizontalScroll(SSD1306MessageFactory.ScrollDirection direction, byte startAddress, byte endAddress, byte speed, byte verticalOffset)
public static final byte[] setVerticalScrollArea(byte fixedRows, byte scrolledRows)
For 64-row display:
Note that:
setMultiplexRatio(int)
setMultiplexRatio(int)
setVerticalAndHorizontalScroll(org.firmata4j.ssd1306.SSD1306MessageFactory.ScrollDirection, byte, byte, byte, byte)
<= scrolledRowssetDisplayStartLine(int)
<= scrolledRowsfixedRows
- No. of rows in top fixed area. It is referenced to the
top of the GDDRAM.scrolledRows
- No. of rows in scroll area. This is the number of
rows to be used for vertical scrolling. The scroll area starts in the
first row below the top fixed area.public static final byte[] setMemoryAddressingMode(SSD1306MessageFactory.MemoryAddressingMode mode)
public static final byte[] setColumnAddress(byte startAddress, byte endAddress)
startAddress
- Column start address, range : 0-127endAddress
- Column end address, range : 0-127public static final byte[] setPageAddress(byte startAddress, byte endAddress)
startAddress
- Page start Address, range : 0-7endAddress
- Page end Address, range : 0-7public static final byte[] setLowerColumnStartAddress(byte address)
address
- lower nibble of the column start addresspublic static final byte[] setHigherColumnStartAddress(byte address)
address
- higher nibble of the column start addresspublic static final byte[] setRAMPageStartAddress(byte address)
address
- Page start Address, range : 0-7public static final byte[] setDisplayStartLine(int line)
public static final byte[] setHorizontalFlip(boolean flip)
public static final byte[] setMultiplexRatio(int multiplexRatio)
public static final byte[] setVerticalFlip(boolean flip)
public static final byte[] setDisplayOffset(int offset)
public static final byte[] setCOMPinsConfig(boolean sequential, boolean leftRightRemap)
public static final byte[] setDisplayClock(byte divideRatio, byte oscillatorFrequency)
public static final byte[] setPrechargePeriod(byte phase1Period, byte phase2Period)
public static final byte[] setVcomhDeselectLevel(byte level)
public static final byte[] setChargePump(boolean enabled)
Copyright © 2017. All rights reserved.