Skip to content

Commit 00e45c3

Browse files
committed
mod: demo example menu. led blinks when an example is chosen
1 parent 2c3ac21 commit 00e45c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/demo/demo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def update_led_status(val):
3131
try:
3232

3333
if alvik.get_touch_ok():
34+
alvik.left_led.set_color(0, 0, 0)
35+
alvik.right_led.set_color(0, 0, 0)
36+
sleep_ms(500)
3437
while not alvik.get_touch_cancel():
3538
if menu_status == 0:
3639
run_line_follower(alvik)

0 commit comments

Comments
 (0)