Skip to content

Commit eee3e5b

Browse files
per1234cmaglie
authored andcommitted
Auto Format all built-in examples
The only changes I left out are the Max/MSP patches because I don't know whether the indentation would break them.
1 parent 8f48433 commit eee3e5b

File tree

72 files changed

+125
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+125
-125
lines changed

build/shared/examples/01.Basics/Blink/Blink.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
Blink
33
Turns an LED on for one second, then off for one second, repeatedly.
44
5-
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
5+
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
66
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
77
the correct LED pin independent of which board is used.
88
If you want to know what pin the on-board LED is connected to on your Arduino model, check
99
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
10-
10+
1111
This example code is in the public domain.
1212
1313
modified 8 May 2014
1414
by Scott Fitzgerald
15-
15+
1616
modified 2 Sep 2016
1717
by Arturo Guadalupi
18-
18+
1919
modified 8 Sep 2016
2020
by Colby Newman
2121
*/

build/shared/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Reads a digital input on pin 2, prints the result to the Serial Monitor
44
55
This example code is in the public domain.
6-
*/
6+
*/
77

88
// digital pin 2 has a pushbutton attached to it. Give it a name:
99
int pushButton = 2;

build/shared/examples/01.Basics/Fade/Fade.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
The analogWrite() function uses PWM, so if
88
you want to change the pin you're using, be
99
sure to use another PWM capable pin. On most
10-
Arduino, the PWM pins are identified with
10+
Arduino, the PWM pins are identified with
1111
a "~" sign, like ~3, ~5, ~6, ~9, ~10 and ~11.
1212
1313
This example code is in the public domain.
14-
*/
14+
*/
1515

1616
int led = 9; // the PWM pin the LED is attached to
1717
int brightness = 0; // how bright the LED is

build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
The circuit:
88
- Use the onboard LED.
9-
- Note: Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
9+
- Note: Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
1010
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
1111
the correct LED pin independent of which board is used.
1212
If you want to know what pin the on-board LED is connected to on your Arduino model, check
@@ -25,7 +25,7 @@
2525
This example code is in the public domain.
2626
2727
http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
28-
*/
28+
*/
2929

3030
// constants won't change. Used here to set a pin number:
3131
const int ledPin = LED_BUILTIN;// the number of the LED pin

build/shared/examples/02.Digital/Button/Button.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
This example code is in the public domain.
2323
2424
http://www.arduino.cc/en/Tutorial/Button
25-
*/
25+
*/
2626

2727
// constants won't change. They're used here to
2828
// set pin numbers:

build/shared/examples/02.Digital/Debounce/Debounce.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
This example code is in the public domain.
2929
3030
http://www.arduino.cc/en/Tutorial/Debounce
31-
*/
31+
*/
3232

3333
// constants won't change. They're used here to
3434
// set pin numbers:

build/shared/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
This example code is in the public domain
2121
22-
*/
22+
*/
2323

2424
void setup() {
2525
//start serial connection

build/shared/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
http://www.arduino.cc/en/Tutorial/ButtonStateChange
2525
26-
*/
26+
*/
2727

2828
// this constant won't change:
2929
const int buttonPin = 2; // the pin that the pushbutton is attached to

build/shared/examples/02.Digital/toneKeyboard/toneKeyboard.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
http://www.arduino.cc/en/Tutorial/Tone3
1818
19-
*/
19+
*/
2020

2121
#include "pitches.h"
2222

build/shared/examples/02.Digital/toneMelody/toneMelody.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
http://www.arduino.cc/en/Tutorial/Tone
1616
17-
*/
17+
*/
1818
#include "pitches.h"
1919

2020
// notes in the melody:

0 commit comments

Comments
 (0)