Page 1 of 1

Scoreboard for micro:bit

Posted: Tue Dec 04, 2018 7:22 pm
by Hanscep
Hi there,
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? :D

Re: Scoreboard for micro:bit

Posted: Wed Dec 05, 2018 4:34 am
by rhubarbdog
it looks easy.
Are you wanting the latching behavior that is demonstrated in the 'new' blocks editor.
Or more likely are you wanting the following

Code: Select all

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