Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit a9d009c

Browse files
committed
formatting and more comments
1 parent 1e928af commit a9d009c

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

src/clue/adafruit_clue.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ class Clue: # pylint: disable=too-many-instance-attributes, too-many-public-met
199199
RAINBOW = (RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE)
200200

201201
def __init__(self):
202-
self._pixel = neopixel.NeoPixel(pin=CONSTANTS.CLUE_PIN, n=1, pixel_order=neopixel.RGB)
202+
self._pixel = neopixel.NeoPixel(
203+
pin=CONSTANTS.CLUE_PIN, n=1, pixel_order=neopixel.RGB
204+
)
203205

204206
@property
205207
def pixel(self):

src/clue/board.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ def show(self, group):
1111

1212

1313
DISPLAY = Display()
14+
15+
# deafult pin,
16+
# shows that this could
17+
# refer to the CPX
18+
# or CLUE neopixel pin
1419
NEOPIXEL = "D00"

src/clue/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
CLUE = "CLUE"
33
PIXELS = "pixels"
44

5-
CLUE_PIN = "D18"
5+
CLUE_PIN = "D18"

src/clue/fontio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# original implementation docs for fontio:
44
# https://circuitpython.readthedocs.io/en/5.0.x/shared-bindings/fontio/__init__.html
55

6+
# file taken from adafruit_bitmap_font's examples:
7+
# https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font/blob/master/test/fontio.py
68
import collections
79

810
Glyph = collections.namedtuple(

src/clue/terminalio.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
import pathlib
1111

1212
abs_path = pathlib.Path(__file__).parent.absolute()
13+
14+
# load default font
1315
FONT = bitmap_font.load_font(os.path.join(abs_path, "fonts", "ter-u12n.bdf"))

0 commit comments

Comments
 (0)