Created
December 26, 2013 19:23
-
-
Save setola/8137616 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
int pulPin = 10; | |
int dirPin = 11; | |
int enblPin = 12; | |
int ledPin = 13; | |
int loops = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(pulPin, OUTPUT); | |
pinMode(dirPin, OUTPUT); | |
pinMode(enblPin, OUTPUT); | |
pinMode(ledPin, OUTPUT); | |
digitalWrite(pulPin, LOW); | |
digitalWrite(ledPin, LOW); | |
digitalWrite(enblPin, LOW); | |
digitalWrite(dirPin, LOW); | |
Serial.begin(9600); | |
Serial.println("init"); | |
digitalWrite(enblPin, HIGH); | |
delay(100); | |
digitalWrite(enblPin, LOW); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
digitalWrite(pulPin, HIGH); | |
digitalWrite(ledPin, HIGH); | |
digitalWrite(pulPin, LOW); | |
digitalWrite(ledPin, LOW); | |
delay(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment