Assignment 4
- kgriesh1
- Feb 8, 2020
- 1 min read
For this project, since we had to use two buttons, I decided to create two variables. I labeled one variable as "greyButton" and the other as "yellowButton". Labeling the two buttons help to distinguish which button is used for what song and which pin it is linked up with. Each button is used to turn a song on. The grey button turns of a blues song and the yellow button turns on a funk song. They both only repeat once. When the neither of the buttons are being pressed the number 0 appears on the microbit, but when each of the buttons are being pressed then a number 1 appears on the microbit. I did not face many difficulties while creating this project.
Comments