mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Removed Serial.begin() inside examples where not needed
This commit is contained in:
@ -50,9 +50,7 @@ int x = 5;
|
|||||||
int y = 5;
|
int y = 5;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
// initialize the I/O pins as outputs
|
||||||
// initialize the I/O pins as outputs:
|
|
||||||
|
|
||||||
// iterate over the pins:
|
// iterate over the pins:
|
||||||
for (int thisPin = 0; thisPin < 8; thisPin++) {
|
for (int thisPin = 0; thisPin < 8; thisPin++) {
|
||||||
// initialize the output pins:
|
// 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:
|
// initialize the stepper library on pins 8 through 11:
|
||||||
Stepper myStepper(stepsPerRevolution, 8,9,10,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() {
|
void setup() {
|
||||||
// initialize the serial port:
|
// nothing to do inside the setup
|
||||||
Serial.begin(9600);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
Reference in New Issue
Block a user