#include <Servo.h>
Servo m;
#define b1 8
#define b2 10
void bL()
{
  m.write(0);
  
}
void bR()
{
  m.write(180);
}
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  pinMode(b1, INPUT);
  pinMode(b2, INPUT);
  m.attach(3);
}
void loop() {
  // put your main code here, to run repeatedly:
  int a = digitalRead(b1);
  int b = digitalRead(b2);
  if(a == HIGH )
  {
    bR();
  }
  if(b == HIGH )
  {
    bL();
  }
  



}