Skip to content

Commit a34f6f8

Browse files
committed
Fix NOP command and add missing Read RAM Option command
1 parent 12b1090 commit a34f6f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

adafruit_epd/ssd1680.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,14 @@
7373
_SSD1680_OTP_PROGMODE = const(0x39)
7474
_SSD1680_WRITE_BORDER = const(0x3C)
7575
_SSD1680_END_OPTION = const(0x3F)
76+
_SSD1680_READ_RAM_OPT = const(0x41)
7677
_SSD1680_SET_RAMXPOS = const(0x44)
7778
_SSD1680_SET_RAMYPOS = const(0x45)
7879
_SSD1680_AUTOWRITE_RED = const(0x46)
7980
_SSD1680_AUTOWRITE_BW = const(0x47)
8081
_SSD1680_SET_RAMXCOUNT = const(0x4E)
8182
_SSD1680_SET_RAMYCOUNT = const(0x4F)
82-
_SSD1680_NOP = const(0xFF)
83+
_SSD1680_NOP = const(0x7F)
8384

8485

8586
class Adafruit_SSD1680(Adafruit_EPD):

adafruit_epd/ssd1680b.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@
6969
_SSD1680B_OTP_PROGMODE = const(0x39)
7070
_SSD1680B_WRITE_BORDER = const(0x3C)
7171
_SSD1680B_END_OPTION = const(0x3F)
72+
_SSD1680B_READ_RAM_OPT = const(0x41)
7273
_SSD1680B_SET_RAMXPOS = const(0x44)
7374
_SSD1680B_SET_RAMYPOS = const(0x45)
7475
_SSD1680B_AUTOWRITE_RED = const(0x46)
7576
_SSD1680B_AUTOWRITE_BW = const(0x47)
7677
_SSD1680B_SET_RAMXCOUNT = const(0x4E)
7778
_SSD1680B_SET_RAMYCOUNT = const(0x4F)
78-
_SSD1680B_NOP = const(0xFF)
79+
_SSD1680B_NOP = const(0x7F)
7980

8081

8182
class Adafruit_SSD1680B(Adafruit_EPD):

0 commit comments

Comments
 (0)