added additional init commands that were being kept in memory
This commit is contained in:
parent
329b6d07a5
commit
2ce9b26877
3 changed files with 5 additions and 2 deletions
|
|
@ -113,6 +113,8 @@ class _SSD1305(framebuf.FrameBuffer):
|
|||
0xd3, 0x00, #SET_DISP_OFFSET
|
||||
0xad, 0x8e, #Set Master Configuration
|
||||
0xd8, 0x05, #Set Area Color Mode On/Off & Low Power Display Mode
|
||||
0x20, 0x00, # horizontal SET_MEM_ADDR ADD
|
||||
0x40 | 0x00, #SET_DISP_START_LINE ADD
|
||||
0xa1, #set segment re-map 128 to 0
|
||||
0xC8, #Set COM Output Scan Direction 64 to 1
|
||||
0xda, 0x12, #SET_COM_PIN_CFG
|
||||
|
|
@ -122,6 +124,7 @@ class _SSD1305(framebuf.FrameBuffer):
|
|||
0xdb, 0x34, #SET_VCOM_DESEL 0xdb, 0x30, $ 0.83* Vcc
|
||||
0xa6, # not inverted SET_NORM_INV
|
||||
0xa4, # output follows RAM contents SET_ENTIRE_ON
|
||||
0x8d, 0x10 if self.external_vcc else 0x14, #SET_CHARGE_PUMP
|
||||
0xaf): #//--turn on oled panel
|
||||
self.write_cmd(cmd)
|
||||
self.fill(0)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
Adafruit-Blinka
|
||||
adafruit-circuitpython-busdevice
|
||||
adafruit_framebuf
|
||||
adafruit-circuitpython-framebuf
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -36,7 +36,7 @@ setup(
|
|||
install_requires=[
|
||||
'Adafruit-Blinka',
|
||||
'adafruit-circuitpython-busdevice',
|
||||
'adafruit_framebuf'
|
||||
'adafruit-circuitpython-framebuf'
|
||||
],
|
||||
|
||||
# Choose your license
|
||||
|
|
|
|||
Loading…
Reference in a new issue