Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Jul 9, 2021
1 parent e98d07f commit 6c6ce2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions adafruit_displayio_sh1107.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"""

import sys
import displayio
from micropython import const
import sys

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SH1107.git"
Expand Down Expand Up @@ -97,17 +97,18 @@
b"\xc0\x00" # common output scan direction = 15 (0 to n-1 (POR=0))
b"\xa8\x01\x3f" # multiplex ratio = 128 (POR)
b"\xd3\x01\x60" # set display offset mode = 0x60
#b"\xd5\x01\x51" # divide ratio/oscillator: divide by 2, fOsc (POR)
# b"\xd5\x01\x51" # divide ratio/oscillator: divide by 2, fOsc (POR)
b"\xd9\x01\x22" # pre-charge/dis-charge period mode: 2 DCLKs/2 DCLKs (POR)
b"\xdb\x01\x35" # VCOM deselect level = 0.770 (POR)
#b"\xb0\x00" # set page address = 0 (POR)
# b"\xb0\x00" # set page address = 0 (POR)
b"\xa4\x00" # entire display off, retain RAM, normal status (POR)
b"\xa6\x00" # normal (not reversed) display
b"\xaf\x00" # DISPLAY_ON
)
_PIXELS_IN_ROW = False
_ROTATION_OFFSET = 90


class SH1107(displayio.Display):
"""
SSD1107 driver for use with DisplayIO
Expand Down

0 comments on commit 6c6ce2e

Please sign in to comment.