Skip to content

Instantly share code, notes, and snippets.

@raster
Created January 19, 2011 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raster/786527 to your computer and use it in GitHub Desktop.
Save raster/786527 to your computer and use it in GitHub Desktop.
Simple Drawbot code
/*
* Drawbot.pde
*
* See also: http://rasterweb.net/raster/2011/01/12/friday-night-drawbot/
* See also: https://gist.github.com/778622
*
*/
int servoPinL = 9;
int servoPinR = 10;
void setup() {
pinMode(servoPinL,OUTPUT);
pinMode(servoPinR,OUTPUT);
}
void loop() {
digitalWrite(servoPinL,HIGH);
digitalWrite(servoPinR,HIGH);
delayMicroseconds(1500);
digitalWrite(servoPinL,LOW);
digitalWrite(servoPinR,LOW);
delay(50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment