Thursday, December 5, 2013

Incomplete motor code.

This is an incomplete code for our trigger motor.(incomplete material)
servo mysero;

int pos= 0;
int inputpin=2;
int val=0;
void setup()
{
myservo.attach()
pinmode(inputpin,INPUT);
}
void loop()
{
val=digitalRead(inputpin);
val = digitalRead(inputpin);
if(val ==HIGH)
{
}
else {}
}

No comments:

Post a Comment