Wednesday, December 4, 2013

shashaying progress


Somewhat closer to what we want it to do. I'm sure there's a lot to fix on the code, but this is basically what I slapped on there instead of the second for loop.


if (cardidentifier == 2198995744) { 
     
  //open the lock
  for(angle = 0; angle <180; angle++)
      {
      servo.write(angle);
      delay(15);

      //now close again
      if(angle = 180) {
        delay(150);
        angle--;
        servo.write(angle);
      }
    }
  }

No comments:

Post a Comment