X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=xmas_tree%2Ftwin_random.py;h=d3b7703fd0aa9a6de265840d4c8b21c0de6769c8;hb=b4cc50edb85f6b136b12b8e0afd1d7013c5303a7;hp=1b4d2b6b7ba6e8f8aaaa454e6e717184419dba23;hpb=014dc3f191db69e580dfb7c87e968ea66020b26d;p=pi-xmas.git

diff --git a/xmas_tree/twin_random.py b/xmas_tree/twin_random.py
index 1b4d2b6..d3b7703 100644
--- a/xmas_tree/twin_random.py
+++ b/xmas_tree/twin_random.py
@@ -9,8 +9,8 @@ tree2.setup() # you must always call setup() first!
 
 # for _ in range(5):
 while True:
-  leds_on = random.sample(tree2.POSSIBLE_LEDS, random.randint(0, 8))
-  tree2.leds_on_and_wait(leds_on, 0.8)
+  leds_on = random.sample(tree2.POSSIBLE_LEDS, random.randint(1, 8))
+  tree2.leds_on_and_wait(leds_on, random.triangular(0.2, 1.0, 0.7))
 
 tree2.all_leds_off() # extinguish all LED