Add example

This commit is contained in:
Fabian Müller 2024-04-14 22:04:21 +02:00
parent 106b8d7eac
commit 62282598f9

11
example.py Normal file
View File

@ -0,0 +1,11 @@
from led_marquee_sign_client.line import Line, Message
from led_marquee_sign_client.enums import *
msg = Message()
msg.add(Line().add(Cartoon.Welcome))
msg.add(Line(transition=Transition.Random).add("Hallo im FabLab Altmühlfranken!"))
msg.add(Line(transition=Transition.ScanLine).add(Macro.CurrentTime24h))
msg.add(Line(font_type=FontType.Font7x11Wide).add(Symbol.Duck).add(" Ente ").add(Symbol.Duck).add(" Ente ").add(Symbol.Duck).add(" Ente"))
print(repr(str(msg)))