mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Removed Serial.begin() inside examples where not needed
This commit is contained in:
parent
8e50ecbb6c
commit
44966b81f4
@ -50,9 +50,7 @@ int x = 5;
|
||||
int y = 5;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
// initialize the I/O pins as outputs:
|
||||
|
||||
// initialize the I/O pins as outputs
|
||||
// iterate over the pins:
|
||||
for (int thisPin = 0; thisPin < 8; thisPin++) {
|
||||
// initialize the output pins:
|
||||
|
@ -26,11 +26,10 @@ const int stepsPerRevolution = 200; // change this to fit the number of steps p
|
||||
// initialize the stepper library on pins 8 through 11:
|
||||
Stepper myStepper(stepsPerRevolution, 8,9,10,11);
|
||||
|
||||
int stepCount = 0; // number of steps the motor has taken
|
||||
int stepCount = 0; // number of steps the motor has taken
|
||||
|
||||
void setup() {
|
||||
// initialize the serial port:
|
||||
Serial.begin(9600);
|
||||
// nothing to do inside the setup
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user