*This must be done on Arduino IDE and use servo sweep*
1.Write a program that will rotate the servo to 15° when the S0button is pressed and held down, or will rotate to 165° when the S3button is pressed and held down, or else will return to 90° if nobutton is pressed.
2. Modify this program to support all four buttons. Read thefour buttons in a function and return a value from 0 – 15 bytreating the four buttons as four bits. Write a different functionwhich will move the servo to (15 + calculated_value * 10 ) degrees.If no buttons are pressed,
PayPal Gateway not configured
PayPal Gateway not configured