Skip to content

Commit 44966b8

Browse files
committed
Removed Serial.begin() inside examples where not needed
1 parent 8e50ecb commit 44966b8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Diff for: build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ int x = 5;
5050
int y = 5;
5151

5252
void setup() {
53-
Serial.begin(9600);
54-
// initialize the I/O pins as outputs:
55-
53+
// initialize the I/O pins as outputs
5654
// iterate over the pins:
5755
for (int thisPin = 0; thisPin < 8; thisPin++) {
5856
// initialize the output pins:

Diff for: libraries/Stepper/examples/stepper_speedControl/stepper_speedControl.ino

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ const int stepsPerRevolution = 200; // change this to fit the number of steps p
2626
// initialize the stepper library on pins 8 through 11:
2727
Stepper myStepper(stepsPerRevolution, 8,9,10,11);
2828

29-
int stepCount = 0; // number of steps the motor has taken
29+
int stepCount = 0; // number of steps the motor has taken
3030

3131
void setup() {
32-
// initialize the serial port:
33-
Serial.begin(9600);
32+
// nothing to do inside the setup
3433
}
3534

3635
void loop() {

0 commit comments

Comments
 (0)