From 44966b81f4f9c975a588eda74a297d5d14f0b9b5 Mon Sep 17 00:00:00 2001 From: Federico Vanzati Date: Wed, 11 Apr 2012 13:08:43 +0200 Subject: [PATCH] Removed Serial.begin() inside examples where not needed --- .../07.Display/RowColumnScanning/RowColumnScanning.ino | 4 +--- .../examples/stepper_speedControl/stepper_speedControl.ino | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino b/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino index 6be347295..f841c6857 100644 --- a/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino +++ b/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino @@ -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: diff --git a/libraries/Stepper/examples/stepper_speedControl/stepper_speedControl.ino b/libraries/Stepper/examples/stepper_speedControl/stepper_speedControl.ino index dbd0f7f02..1a67a55ea 100644 --- a/libraries/Stepper/examples/stepper_speedControl/stepper_speedControl.ino +++ b/libraries/Stepper/examples/stepper_speedControl/stepper_speedControl.ino @@ -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() {