This is my first project (besides Blinky) and I need to control a servo with a push button. When the button is pushed, the servo should turn 45 degrees and when I leave the button, it should return to its original position.
servoPin = 9
buttonPin = 8
Please, I need help!
Also, please take note that the colour of the wires in the diagram have no meaning and are random to be differentiable.
AnotherFinal.ino (417 Bytes)