From 1457438493604b899e7929c95a3707b71e63f1e2 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Sat, 24 Dec 2022 15:10:08 +0100 Subject: Fix bugs in builtin scripts --- NeoRuntime/builtin/strobe/script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NeoRuntime/builtin/strobe/script.py') 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() -- cgit v1.2.3