top of page

Microbit Project 2

  • gsantoro2
  • Sep 21, 2021
  • 1 min read

Project 2 was to create some sort of game involving LEDS and at least one button press. This was tricky to think about so I had to look on Microsoft's website for the Microbit coding for some inspiration. In the end I came up with the idea of a guessing game where the Microbit chooses the numbers 1 or 2 at random and the corresponding LED would light up as a result with the number displayed on the screen.

Luckily there was a coding block that allowed for the Microbit to randomly choose numbers between the numbers the Coder inputs. I created a variable for this called Number Guess and set an If/Else statement using it. If the Microbit chose 1 then the screen would display the number and the red LED would light up as a result. If it chose 2 then the blue LED would light up instead. This was all activated by the press of button A while button B would reset the LEDS, although this could've been simplified and put after the If/Else statement if I wanted. The start up screen is a quick little repeat of two triangles, just to have some character to it. The point of the game is for the player to guess either 1 or 2 and then see if they were correct.




 
 
 

Recent Posts

See All
Contemporary Artists 11/?/22

There's 2 contemporary artists whose work I enjoyed seeing. Both had works exhibited at the Stremmel Gallery back in 2013 in the exhibit...

 
 
 
Response to Critique 10/17/22

It seemed like everyone had good responses to my work. I liked that one of the teachers actually thought the ripped parts of the papers...

 
 
 
How To Be An Artist 9/13/22

Lesson 6 speaks to me as it's very useful to start with a pencil as it allows you to start over if needed. In fact, that's how I began to...

 
 
 

Комментарии


bottom of page