Scoreboard for micro:bit

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
Posts: 1
Joined: Tue Dec 04, 2018 7:11 pm

Scoreboard for micro:bit

Post by Hanscep » Tue Dec 04, 2018 7:22 pm

Hi there,
I'm really interested, how could this algorithm ( ... 7883-72378) look like in micropython. Could anybody please show me that? :D

Posts: 166
Joined: Tue Nov 07, 2017 11:45 pm

Re: Scoreboard for micro:bit

Post by rhubarbdog » Wed Dec 05, 2018 4:34 am

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

Post Reply