Professional Documents
Culture Documents
(project update)
Ganth chart
basic code
#include <Servo.h>
Servo myServo;
void setup()
{
myServo.attach(servoPin);
pinMode(buttonPin, INPUT_PULLUP);
}
void loop()
{
if (digitalRead(buttonPin) == HIGH)
{
myServo.write(90);
}
else
{
myServo.write(45);
delay(3000);
}
}
picture of pre - build project