void receiveEvent(int howMany)
{ //activates when a byte is recieved
c = Wire.read(); // read byte ; declare in global area : volatile byte c; volatile flag1 = false;
flag1 = true; //indication that receiveEvent() handler has been visited
}
void loop
{
if(flag1 == true)
{
if(c==51)
{ //3=51,4=52
deploy();
delay(500);
retract();
flag1 = false;
}
}
}