Last active
July 10, 2018 15:30
-
-
Save li2hub/7baa35512d8fb8048bb13bd8a3a18d58 to your computer and use it in GitHub Desktop.
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
const int leftForward = 2; | |
const int leftBackward = 3; | |
const int rightForward = 4; | |
const int rightBackward = 5; | |
void setup() | |
{ | |
pinMode(leftForward , OUTPUT); | |
pinMode(leftBackward , OUTPUT); | |
pinMode(rightForward , OUTPUT); | |
pinMode(rightBackward , OUTPUT); | |
} | |
void loop() | |
{ | |
digitalWrite(leftForward , HIGH); | |
digitalWrite(leftBackward , LOW); | |
digitalWrite(rightForward , HIGH); | |
digitalWrite(rightBackward , LOW); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment