1 - For my first program I made the microbit say I <3 U with the LED lights. By pressing the A button the “I” lit up and by tilting the microbit to the left the “<3” projected and the “U” when the board was tilted to the right. This program was fairly easy, I was just playing around with the options. The code of this program is below.
2 - For my second program I explored the various tutorials Microbit has on their website and I chose the countdown clock. The tutorial was easy to follow and the visuals made it possible to see where you went wrong. After I completed the tutorial I tried the program on the practice microbit to the left of the code (on the computer). For some reason it would not count down after I shook it. To fix my problem I went through the tutorial and found out that I had not put seconds in for the shake variable. After that my program worked perfectly! The code of the countdown is shown below.
0 Comments
Leave a Reply. |
AuthorArchives
October 2018
Categories |