1b4d2b6b7ba6e8f8aaaa454e6e717184419dba23
4 bottom_right_reds
= [tree2
.RR1
, tree2
.RR2
, tree2
.RR3
, tree2
.RR4
, tree2
.RR5
, tree2
.RR6
]
5 bottom_left_reds
= [tree2
.LR1
, tree2
.LR2
, tree2
.LR3
, tree2
.LR4
, tree2
.LR5
, tree2
.LR6
]
7 # note that we must tell setup() that we have a bicolour LED
8 tree2
.setup() # you must always call setup() first!
12 leds_on
= random
.sample(tree2
.POSSIBLE_LEDS
, random
.randint(0, 8))
13 tree2
.leds_on_and_wait(leds_on
, 0.8)
15 tree2
.all_leds_off() # extinguish all LED
18 tree2
.cleanup() # call cleanup() at the end