aboutsummaryrefslogtreecommitdiff
path: root/Lesson 1 Make The Car Move/right_wheel_rotation
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-26 20:33:02 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-26 20:33:02 +0200
commitba216919262d7f888bfb99debf81babe1ce88e0e (patch)
tree16c19610a7a3a77c97b99a63f6ba85d11ebde4ec /Lesson 1 Make The Car Move/right_wheel_rotation
parentd80736ab6e8e3cad2f1a30c6eaba2d6883dbe967 (diff)
Move lessons to doc
Diffstat (limited to 'Lesson 1 Make The Car Move/right_wheel_rotation')
-rwxr-xr-xLesson 1 Make The Car Move/right_wheel_rotation/right_wheel_rotation.ino31
1 files changed, 0 insertions, 31 deletions
diff --git a/Lesson 1 Make The Car Move/right_wheel_rotation/right_wheel_rotation.ino b/Lesson 1 Make The Car Move/right_wheel_rotation/right_wheel_rotation.ino
deleted file mode 100755
index 766573c..0000000
--- a/Lesson 1 Make The Car Move/right_wheel_rotation/right_wheel_rotation.ino
+++ /dev/null
@@ -1,31 +0,0 @@
-//www.elegoo.com
-//2016.09.12
-
-/*In1 connected to the 9 pin,
- In2 connected to the 8 pin, ENA pin 10,*/
-int ENA=10;
-int IN1=9;
-int IN2=8;
-void setup()
-{
- pinMode(IN1,OUTPUT);
- pinMode(IN2,OUTPUT);
- pinMode(ENA,OUTPUT);
- digitalWrite(ENA,HIGH);
-}
-void loop()
-{
- digitalWrite(IN1,LOW);
- digitalWrite(IN2,HIGH); //Right wheel forward
- delay(500);
- digitalWrite(IN1,LOW);
- digitalWrite(IN2,LOW); //Right wheel stop
- delay(500);
- digitalWrite(IN1,HIGH);
- digitalWrite(IN2,LOW); //Right wheel back
- delay(500);
- digitalWrite(IN1,LOW);
- digitalWrite(IN2,LOW); //Right wheel stop
- delay(500);
-}
-