-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.py
More file actions
executable file
·32 lines (28 loc) · 972 Bytes
/
code.py
File metadata and controls
executable file
·32 lines (28 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'''code.py
June 20, 2021 - Larry Priest
priestlt@protonmail.com
Starter for a multi clock on Matrix Portal. Will eventually loop through the
various clock and billboard screens. The plan is to start by class-ifing the
original samples and then having each run through a short internal loop then
loop to the next one.
'''
import time
import board
import terminalio
from adafruit_matrixportal.matrixportal import MatrixPortal
from ScrollingClock import myclock
from QuoteBoard import QuoteBoard
print('Hello World!')
matrixportal = MatrixPortal(status_neopixel=board.NEOPIXEL, debug=True)
# Set the time to local time
matrixportal.get_local_time()
matrixportal.add_text(
text_font=terminalio.FONT,
text_position=(0, (matrixportal.graphics.display.height // 2) - 1),
scrolling=True,)
my_time = myclock(matrixportal)
quoteboard = QuoteBoard(matrixportal)
while True:
my_time.displayClock()
quoteboard.ScrollQuote()
import MoonClock