Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercrumpton committed Mar 5, 2021
1 parent c2013c1 commit e31bc61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gc9a01.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
_INIT_SEQUENCE = bytearray(
b"\xFE\x00" # Inter Register Enable1 (FEh)
b"\xEF\x00" # Inter Register Enable2 (EFh)
b"\xB6\x02\x00\x00" # Display Function Control (B6h) [S1→S360 source scan direction, G1→G32 gate scan direction]
b"\xB6\x02\x00\x00" # Display Function Control (B6h) [S1→S360 source, G1→G32 gate]
b"\x36\x01\x48" # Memory Access Control(36h) [Invert Row order, invert vertical scan order]
b"\x3a\x01\x05" # COLMOD: Pixel Format Set (3Ah) [16 bits / pixel]
b"\xC3\x01\x13" # Power Control 2 (C3h) [VREG1A = 5.06, VREG1B = 0.68]
Expand All @@ -52,8 +52,10 @@
b"\x2b\x04\x00\x00\x00\xef" # Row Address Set (2Bh) [Start row = 0, end row = 239]
)


# pylint: disable=too-few-public-methods
class GC9A01(displayio.Display):
"""GC9A01 displayio driver"""

def __init__(self, bus, **kwargs):
init_sequence = _INIT_SEQUENCE
super().__init__(bus, init_sequence, **kwargs)

0 comments on commit e31bc61

Please sign in to comment.