Skip to content

Instantly share code, notes, and snippets.

@aaronsherwood
Created October 2, 2012 04:59
Show Gist options
  • Save aaronsherwood/3816249 to your computer and use it in GitHub Desktop.
Save aaronsherwood/3816249 to your computer and use it in GitHub Desktop.
bang a lollipop on a glockenspiel with arduino
#include <Servo.h>
Servo servoMotor;
const int servoPin=2;
void setup(){
servoMotor.attach(servoPin);
}
void loop(){
servoMotor.write(82);
delay(500);
servoMotor.write(58);
delay(60);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment