[Challenge 3]
For this challenge we applied the method we used to fix the toggle method to detect the switch better and, therefore, to get a reliable result. We realized that the set "count" has to be initialized outside of the forever loop since having it inside the loop will just set it equal to zero every time.
[Challenge 4]
For challenge 4, we implemented our transistor, which I find exciting! Using "setpower" operation, we were able to bring up the motor power to its maximum (10000) and back to zero by repeating the code ten times, slowly incrementing and then decrementing by 1000 each time.
For this challenge we applied the method we used to fix the toggle method to detect the switch better and, therefore, to get a reliable result. We realized that the set "count" has to be initialized outside of the forever loop since having it inside the loop will just set it equal to zero every time.
[Challenge 4]
For challenge 4, we implemented our transistor, which I find exciting! Using "setpower" operation, we were able to bring up the motor power to its maximum (10000) and back to zero by repeating the code ten times, slowly incrementing and then decrementing by 1000 each time.
No comments:
Post a Comment