Whitespace fixes in examples

This commit is contained in:
Sudar 2015-03-28 19:37:49 +05:30
parent d9176a0a64
commit 6f326e6e26
3 changed files with 13 additions and 14 deletions

View file

@ -1,19 +1,18 @@
/* /*
Blink Blink
Turns on an LED on for one second, then off for one second, repeatedly. Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain. This example code is in the public domain.
*/ */
void setup() { void setup() {
// initialize the digital pin as an output. // initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards: // Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT); pinMode(13, OUTPUT);
} }
void loop() { void loop() {
digitalWrite(13, HIGH); // set the LED on digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second delay(1000); // wait for a second
} }

View file

@ -1,5 +1,5 @@
# Arduino Make file. Refer to https://github.com/sudar/Arduino-Makefile
BOARD_TAG = uno BOARD_TAG = uno
ARDUINO_LIBS =
include ../../Arduino.mk include ../../Arduino.mk

View file

@ -1,17 +1,17 @@
/* /*
Blink Blink
Turns on an LED on for one second, then off for one second, repeatedly. Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain. This example code is in the public domain.
*/ */
// Connect a LED to Pin 3. It might be different in different ATtiny micro controllers // Connect a LED to Pin 3. It might be different in different ATtiny micro controllers
int led = 3; int led = 3;
// the setup routine runs once when you press reset: // the setup routine runs once when you press reset:
void setup() { void setup() {
// initialize the digital pin as an output. // initialize the digital pin as an output.
pinMode(led, OUTPUT); pinMode(led, OUTPUT);
} }
// the loop routine runs over and over again forever: // the loop routine runs over and over again forever: