From 62282598f97543b3c55c9a0ab511b117a62d16ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=BCller?= Date: Sun, 14 Apr 2024 22:04:21 +0200 Subject: [PATCH] Add example --- example.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 example.py diff --git a/example.py b/example.py new file mode 100644 index 0000000..ed5e5c5 --- /dev/null +++ b/example.py @@ -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)))