We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c6b31 commit a36e7b9Copy full SHA for a36e7b9
miniRobotDrive/miniRobotDrive.ino
@@ -0,0 +1,31 @@
1
+int rightPin = 50;
2
+int leftPin = 48;
3
+
4
+void setup() {
5
+ Serial.begin(9600);
6
+ pinMode(leftPin, OUTPUT);
7
+ pinMode(rightPin, OUTPUT);
8
9
+}
10
11
+void loop() {
12
+ Serial.println("I'm crying");
13
+ digitalWrite(leftPin, HIGH);
14
+ digitalWrite(rightPin, HIGH);
15
16
+ delay(500);
17
+ turnLeft();
18
19
+ digitalWrite(leftPin, LOW);
20
+ digitalWrite(rightPin, LOW);
21
22
+ delay(3000);
23
24
25
26
+void turnLeft(){
27
28
29
30
+ delay(1000);
31
0 commit comments