Skip to content

Commit b7936a7

Browse files
committed
Add comments to file
1 parent a36e7b9 commit b7936a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

miniRobotDrive/miniRobotDrive.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ int leftPin = 48;
33

44
void setup() {
55
Serial.begin(9600);
6+
//leftPin and rightPin control transistors which turn motors on and off
67
pinMode(leftPin, OUTPUT);
78
pinMode(rightPin, OUTPUT);
89

910
}
1011

1112
void loop() {
12-
Serial.println("I'm crying");
13+
//turn on both motors for half a second
1314
digitalWrite(leftPin, HIGH);
1415
digitalWrite(rightPin, HIGH);
1516

@@ -24,6 +25,7 @@ void loop() {
2425
}
2526

2627
void turnLeft(){
28+
//run right side forward and keep left stagnant
2729
digitalWrite(rightPin, HIGH);
2830
digitalWrite(leftPin, LOW);
2931

0 commit comments

Comments
 (0)