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/strobe/script.py | |
parent | c06882e58a7e30928ccf6366e4265548f54218c2 (diff) | |
download | Luxcena-Neo-1457438493604b899e7929c95a3707b71e63f1e2.tar.gz Luxcena-Neo-1457438493604b899e7929c95a3707b71e63f1e2.zip |
Fix bugs in builtin scripts
Diffstat (limited to 'NeoRuntime/builtin/strobe/script.py')
-rw-r--r-- | NeoRuntime/builtin/strobe/script.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NeoRuntime/builtin/strobe/script.py b/NeoRuntime/builtin/strobe/script.py index cd5bffd..5d05bbd 100644 --- a/NeoRuntime/builtin/strobe/script.py +++ b/NeoRuntime/builtin/strobe/script.py @@ -4,7 +4,7 @@ from time import perf_counter class Main(NeoBehaviour): def declare_variables(self): - self.declare(FloatVariable("delay", 0.07, min_val=0.01, max_val=0.5, step=0.01)) + self.declare(FloatVariable("delay", 0.07, min_val=0.000001, max_val=0.5, step=0.000001)) self.declare(IntegerVariable("pause", 20, min_val=1, max_val=60)) self.declare(IntegerVariable("strobe count", 10, min_val=1, max_val=100)) self.declare(ColorVariable("color", "#fafafa")) @@ -31,4 +31,4 @@ class Main(NeoBehaviour): def set_all(*color): for i in range(strip.num_pixels()): strip.set_pixel_color(i, *color) - strip.show()
\ No newline at end of file + strip.show() |