I'm really interested, how could this algorithm (https://makecode.microbit.org/v0/61855- ... 7883-72378) look like in micropython. Could anybody please show me that?

Code: Select all
if pin0 is connected to 3.3v
increase score by 1
output high on pin2 for 1 second