Created
January 19, 2011 17:43
-
-
Save raster/786527 to your computer and use it in GitHub Desktop.
Simple Drawbot code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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