mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-11-14 00:43:50 +00:00
consistent indentation
This commit is contained in:
parent
375590d87f
commit
e1c5cd304d
14
API/main.py
14
API/main.py
@ -5,11 +5,11 @@ import time
|
||||
|
||||
|
||||
class Test(SampleBase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(Test, self).__init__(*args, **kwargs)
|
||||
self.parser.add_argument("-t", "--text", help="The text to scroll on the RGB LED panel", default="Hello world!")
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(Test, self).__init__(*args, **kwargs)
|
||||
self.parser.add_argument("-t", "--text", help="The text to scroll on the RGB LED panel", default="Hello world!")
|
||||
|
||||
def run(self):
|
||||
def run(self):
|
||||
offscreen_canvas = self.matrix.CreateFrameCanvas()
|
||||
font = graphics.Font()
|
||||
font.LoadFont("deps/fonts/7x13.bdf")
|
||||
@ -27,6 +27,6 @@ class Test(SampleBase):
|
||||
|
||||
# Main function
|
||||
if __name__ == "__main__":
|
||||
test = Test()
|
||||
if (not test.process()):
|
||||
test.print_help()
|
||||
test = Test()
|
||||
if (not test.process()):
|
||||
test.print_help()
|
||||
|
Loading…
Reference in New Issue
Block a user