Assignment 5
- allisongrace807
- Feb 21, 2019
- 1 min read
When first learning about the speaker in class, I understood how to wire and code it. When learning about booleans and the extra button, the logic part of the code confused me a lot. Now that I wanted to try to combine the two, I was completely stumped. I had absolutely no idea how to combine the two together in the same code. I am good at wiring the microbit , but the codes sometimes confuse me. I went back into my notes I took from the power points posted on Professors website, and reread everything about booleans and logic. After re-reading it, I started to understand it more. I then made the codes for the speaker and for the extra button with the LED separately. After I got them both to work on their own at the same time, I then tried to combine them. The picture posted with this is the picture of the final code I came up with. This code turned on the speaker and LED using the extra button. The only thing that I still want to figure out is how to turn everything back off using the extra button.

Comments