Skip to content

Commit

Permalink
Merge pull request #3 from Fede85/master
Browse files Browse the repository at this point in the history
Merged Federico's pulll request, "ultimate refinements to the examples"
  • Loading branch information
tigoe committed Apr 12, 2012
2 parents bb9a4f8 + 44966b8 commit 7cea3fa
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 16 deletions.
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions libraries/EEPROM/examples/eeprom_read/eeprom_read.ino
Expand Up @@ -14,7 +14,11 @@ byte value;

void setup()
{
// initialize serial and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
}

void loop()
Expand Down
3 changes: 2 additions & 1 deletion libraries/LiquidCrystal/examples/Autoscroll/Autoscroll.ino
Expand Up @@ -32,7 +32,8 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalAutoscroll
*/

// include the library code:
Expand Down
2 changes: 1 addition & 1 deletion libraries/LiquidCrystal/examples/Blink/Blink.ino
Expand Up @@ -32,7 +32,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalBlink
*/

Expand Down
3 changes: 2 additions & 1 deletion libraries/LiquidCrystal/examples/Cursor/Cursor.ino
Expand Up @@ -33,7 +33,8 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalCursor
*/

// include the library code:
Expand Down
3 changes: 2 additions & 1 deletion libraries/LiquidCrystal/examples/Display/Display.ino
Expand Up @@ -33,7 +33,8 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalDisplay
*/

// include the library code:
Expand Down
3 changes: 2 additions & 1 deletion libraries/LiquidCrystal/examples/Scroll/Scroll.ino
Expand Up @@ -33,7 +33,8 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalScroll
*/

// include the library code:
Expand Down
Expand Up @@ -32,7 +32,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalSerial
*/

// include the library code:
Expand Down
Expand Up @@ -32,7 +32,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalTextDirection
*/

Expand All @@ -49,7 +49,6 @@ void setup() {
lcd.begin(16, 2);
// turn on the cursor:
lcd.cursor();
Serial.begin(9600);
}

void loop() {
Expand Down
3 changes: 2 additions & 1 deletion libraries/LiquidCrystal/examples/setCursor/setCursor.ino
Expand Up @@ -32,7 +32,8 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/LiquidCrystal
http://arduino.cc/en/Tutorial/LiquidCrystalSetCursor
*/

// include the library code:
Expand Down
Expand Up @@ -23,7 +23,7 @@ SoftwareSerial mySerial(2, 3); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin57600;
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Expand Down
Expand Up @@ -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() {
Expand Down

0 comments on commit 7cea3fa

Please sign in to comment.