File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,6 @@ void setup() {
177
177
// Set OC1A/OC1B on compare match when downcounting
178
178
TCCR1A = (1 << COM1A1) | (1 << COM1B1);
179
179
180
- setPWM (left, 0 ); // Turn off PWM on both pins
181
- setPWM (right, 0 );
182
-
183
180
#ifdef ENABLE_USB
184
181
if (Usb.Init () == -1 ) { // Check if USB Host is working
185
182
Serial.print (F (" OSC did not start" ));
@@ -238,7 +235,8 @@ void setup() {
238
235
/* Calibrate gyro zero value */
239
236
while (calibrateGyro ()); // Run again if the robot is moved while calibrating
240
237
241
- LED::SetDirWrite ();
238
+ LED::SetDirWrite (); // Set LED pin to output
239
+ stopAndReset (); // Turn off motors and reset different values
242
240
243
241
/* Beep to indicate that it is now ready */
244
242
buzzer::Set ();
You can’t perform that action at this time.
0 commit comments