4 A_IMAGE
= Image('09909:'
10 B_IMAGE
= Image('99909:'
16 display
.scroll('Press', wait
=False, loop
=True)
20 if button_a
.was_pressed():
21 display_image
= A_IMAGE
22 last_sent_time
= running_time()
26 if button_b
.was_pressed():
27 display_image
= B_IMAGE
28 last_sent_time
= running_time()
33 dimness
= (running_time() - last_sent_time
) / 500
34 if dimness
> 9: dimness
= 9
35 display
.show(display_image
/ dimness
, wait
=False)