Skip to content

Commit 2ce9b26

Browse files
committed
added additional init commands that were being kept in memory
1 parent 329b6d0 commit 2ce9b26

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

adafruit_ssd1305.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def init_display(self):
113113
0xd3, 0x00, #SET_DISP_OFFSET
114114
0xad, 0x8e, #Set Master Configuration
115115
0xd8, 0x05, #Set Area Color Mode On/Off & Low Power Display Mode
116+
0x20, 0x00, # horizontal SET_MEM_ADDR ADD
117+
0x40 | 0x00, #SET_DISP_START_LINE ADD
116118
0xa1, #set segment re-map 128 to 0
117119
0xC8, #Set COM Output Scan Direction 64 to 1
118120
0xda, 0x12, #SET_COM_PIN_CFG
@@ -122,6 +124,7 @@ def init_display(self):
122124
0xdb, 0x34, #SET_VCOM_DESEL 0xdb, 0x30, $ 0.83* Vcc
123125
0xa6, # not inverted SET_NORM_INV
124126
0xa4, # output follows RAM contents SET_ENTIRE_ON
127+
0x8d, 0x10 if self.external_vcc else 0x14, #SET_CHARGE_PUMP
125128
0xaf): #//--turn on oled panel
126129
self.write_cmd(cmd)
127130
self.fill(0)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Adafruit-Blinka
22
adafruit-circuitpython-busdevice
3-
adafruit_framebuf
3+
adafruit-circuitpython-framebuf

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
install_requires=[
3737
'Adafruit-Blinka',
3838
'adafruit-circuitpython-busdevice',
39-
'adafruit_framebuf'
39+
'adafruit-circuitpython-framebuf'
4040
],
4141

4242
# Choose your license

0 commit comments

Comments
 (0)