Checkpoint
This commit is contained in:
125 files changed
+59376
No files matched your search
@@ -0,0 +1,58 @@
|
||||
package ssd1306
|
||||
|
||||
const (
|
||||
_CHARGEPUMP = 0x8D
|
||||
_COLUMNADDR = 0x21
|
||||
_COMSCANDEC = 0xC8
|
||||
_COMSCANINC = 0xC0
|
||||
_DISPLAYALLON = 0xA5
|
||||
_DISPLAYALLON_RESUME = 0xA4
|
||||
_DISPLAYOFF = 0xAE
|
||||
_DISPLAYON = 0xAF
|
||||
_EXTERNALVCC = 0x1
|
||||
_INVERTDISPLAY = 0xA7
|
||||
_MEMORYMODE = 0x20
|
||||
_NORMALDISPLAY = 0xA6
|
||||
_PAGEADDR = 0x22
|
||||
_PAGESTARTADDRESS = 0xB0
|
||||
_SEGREMAP = 0xA0
|
||||
_SETCOMPINS = 0xDA
|
||||
_SETCONTRAST = 0x81
|
||||
_SETDISPLAYCLOCKDIV = 0xD5
|
||||
_SETDISPLAYOFFSET = 0xD3
|
||||
_SETHIGHCOLUMN = 0x10
|
||||
_SETLOWCOLUMN = 0x00
|
||||
_SETMULTIPLEX = 0xA8
|
||||
_SETPRECHARGE = 0xD9
|
||||
_SETSEGMENTREMAP = 0xA1
|
||||
_SETSTARTLINE = 0x40
|
||||
_SETVCOMDETECT = 0xDB
|
||||
_SWITCHCAPVCC = 0x2
|
||||
)
|
||||
|
||||
// FrameRate determines scrolling speed.
|
||||
type FrameRate byte
|
||||
|
||||
// Possible frame rates. The value determines the number of refreshes between
|
||||
// movement. The lower value, the higher speed.
|
||||
const (
|
||||
FrameRate2 FrameRate = 7
|
||||
FrameRate3 FrameRate = 4
|
||||
FrameRate4 FrameRate = 5
|
||||
FrameRate5 FrameRate = 0
|
||||
FrameRate25 FrameRate = 6
|
||||
FrameRate64 FrameRate = 1
|
||||
FrameRate128 FrameRate = 2
|
||||
FrameRate256 FrameRate = 3
|
||||
)
|
||||
|
||||
// Orientation is used for scrolling.
|
||||
type Orientation byte
|
||||
|
||||
// Possible orientations for scrolling.
|
||||
const (
|
||||
Left Orientation = 0x27
|
||||
Right Orientation = 0x26
|
||||
UpRight Orientation = 0x29
|
||||
UpLeft Orientation = 0x2A
|
||||
)
|
||||
Reference in new issue
Block a user