diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2022-12-24 15:10:08 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2022-12-24 15:10:08 +0100 |
commit | 1457438493604b899e7929c95a3707b71e63f1e2 (patch) | |
tree | 896b537e3fded17458d314a91f3f89e240c92c4a /NeoRuntime/builtin/static | |
parent | c06882e58a7e30928ccf6366e4265548f54218c2 (diff) | |
download | Luxcena-Neo-1457438493604b899e7929c95a3707b71e63f1e2.tar.gz Luxcena-Neo-1457438493604b899e7929c95a3707b71e63f1e2.zip |
Fix bugs in builtin scripts
Diffstat (limited to 'NeoRuntime/builtin/static')
-rw-r--r-- | NeoRuntime/builtin/static/script.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/NeoRuntime/builtin/static/script.py b/NeoRuntime/builtin/static/script.py index 8916106..536ebe8 100644 --- a/NeoRuntime/builtin/static/script.py +++ b/NeoRuntime/builtin/static/script.py @@ -7,10 +7,11 @@ class Main(NeoBehaviour): def on_start(self): print("Script started, color: {}".format(self.var.color)) + + def each_tick(self): + self.set_color(self.var.color) def set_color(self, value): - print("Color var changed: {}".format(value)) - print(utils.detect_format_convert_color(value)) for i in range(strip.LED_COUNT): strip.set_pixel_color(i, value) strip.show() |