From ba216919262d7f888bfb99debf81babe1ce88e0e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 26 Aug 2017 20:33:02 +0200 Subject: Move lessons to doc --- .../left_wheel_rotation/left_wheel_rotation.ino | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100755 Lesson 1 Make The Car Move/left_wheel_rotation/left_wheel_rotation.ino (limited to 'Lesson 1 Make The Car Move/left_wheel_rotation') diff --git a/Lesson 1 Make The Car Move/left_wheel_rotation/left_wheel_rotation.ino b/Lesson 1 Make The Car Move/left_wheel_rotation/left_wheel_rotation.ino deleted file mode 100755 index 3a751c6..0000000 --- a/Lesson 1 Make The Car Move/left_wheel_rotation/left_wheel_rotation.ino +++ /dev/null @@ -1,31 +0,0 @@ -//www.elegoo.com -//2016.09.12 - -/*In3 connected to the 7 pin, - In4 connected to the 6 pin, ENB pin 5,*/ -int ENB=5; -int IN3=7; -int IN4=6; -void setup() -{ - pinMode(IN3,OUTPUT); - pinMode(IN4,OUTPUT); - pinMode(ENB,OUTPUT); - digitalWrite(ENB,HIGH); -} -void loop() -{ - digitalWrite(IN3,LOW); - digitalWrite(IN4,HIGH); //Left wheel forward - delay(500); - digitalWrite(IN3,LOW); - digitalWrite(IN4,LOW); //Left wheel stop - delay(500); - digitalWrite(IN3,HIGH); - digitalWrite(IN4,LOW); //Left wheel back - delay(500); - digitalWrite(IN3,LOW); - digitalWrite(IN4,LOW); //Left wheel stop - delay(500); -} - -- cgit v1.2.3