From 775deab0b3e78a283ae77c63a8d1715c56aa2a98 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Wed, 16 Dec 2020 14:04:37 +0100 Subject: [PATCH] added a led-test --- .gitignore | 1 + clock/api/hat/tester.py | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 clock/api/hat/tester.py diff --git a/.gitignore b/.gitignore index 075724e..cc81706 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Persistence prst.* + log.txt # API-Key (keep secret at all times) keys.py diff --git a/clock/api/hat/tester.py b/clock/api/hat/tester.py new file mode 100644 index 0000000..5f868da --- /dev/null +++ b/clock/api/hat/tester.py @@ -0,0 +1,9 @@ +import unicorn + +led = unicorn.UnicornHat(32,16) + +for i in range(16*32): + x = i % 32 + y = i // 32 + led.set_pixel(x,y, 10, 200, 30) + led.show() \ No newline at end of file