Assignment 5
- kgriesh1
- Feb 15, 2020
- 1 min read
For this project I was trying to find ways to incorporate the potentiometer and a button. What I did was, I had the potentiometer connected to p1 and the button connected to p2. I included that when you press the button the number 1 will show up on the microbit and when it is not being pressed the number 0 shows up on the microbit. I also included some logic. I put that if the button is being pressed then the speaker will be playing a tone for a 1/8 beat, and when the button is not being pressed then the speaker will play a tone for a 1/2 beat. I did not have any difficulties with the wiring or the codingfor this project. I just had to figure out what I actually wanted to do and experiment with it.
https://makecode.microbit.org/_VipW1oc27iVa
Comments