diff --git a/build/shared/examples/01.Basics/Blink/Blink.ino b/build/shared/examples/01.Basics/Blink/Blink.ino index f65f23b81..3bfc1a753 100644 --- a/build/shared/examples/01.Basics/Blink/Blink.ino +++ b/build/shared/examples/01.Basics/Blink/Blink.ino @@ -2,20 +2,20 @@ Blink Turns an LED on for one second, then off for one second, repeatedly. - Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO + Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to the correct LED pin independent of which board is used. If you want to know what pin the on-board LED is connected to on your Arduino model, check the Technical Specs of your board at https://www.arduino.cc/en/Main/Products - + This example code is in the public domain. modified 8 May 2014 by Scott Fitzgerald - + modified 2 Sep 2016 by Arturo Guadalupi - + modified 8 Sep 2016 by Colby Newman */ diff --git a/build/shared/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino b/build/shared/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino index a97be3cd9..afa9a0aab 100644 --- a/build/shared/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino +++ b/build/shared/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino @@ -3,7 +3,7 @@ Reads a digital input on pin 2, prints the result to the Serial Monitor This example code is in the public domain. - */ +*/ // digital pin 2 has a pushbutton attached to it. Give it a name: int pushButton = 2; diff --git a/build/shared/examples/01.Basics/Fade/Fade.ino b/build/shared/examples/01.Basics/Fade/Fade.ino index f3734f339..d249fb5ef 100644 --- a/build/shared/examples/01.Basics/Fade/Fade.ino +++ b/build/shared/examples/01.Basics/Fade/Fade.ino @@ -7,11 +7,11 @@ The analogWrite() function uses PWM, so if you want to change the pin you're using, be sure to use another PWM capable pin. On most - Arduino, the PWM pins are identified with + Arduino, the PWM pins are identified with a "~" sign, like ~3, ~5, ~6, ~9, ~10 and ~11. This example code is in the public domain. - */ +*/ int led = 9; // the PWM pin the LED is attached to int brightness = 0; // how bright the LED is diff --git a/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino b/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino index 08ddf9de8..724127cf5 100644 --- a/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino +++ b/build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino @@ -6,7 +6,7 @@ The circuit: - Use the onboard LED. - - Note: Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO + - Note: Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to the correct LED pin independent of which board is used. If you want to know what pin the on-board LED is connected to on your Arduino model, check @@ -25,7 +25,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay - */ +*/ // constants won't change. Used here to set a pin number: const int ledPin = LED_BUILTIN;// the number of the LED pin diff --git a/build/shared/examples/02.Digital/Button/Button.ino b/build/shared/examples/02.Digital/Button/Button.ino index 2aafd8e24..d48606fe3 100644 --- a/build/shared/examples/02.Digital/Button/Button.ino +++ b/build/shared/examples/02.Digital/Button/Button.ino @@ -22,7 +22,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/Button - */ +*/ // constants won't change. They're used here to // set pin numbers: diff --git a/build/shared/examples/02.Digital/Debounce/Debounce.ino b/build/shared/examples/02.Digital/Debounce/Debounce.ino index 2c5ae8553..4cbfe69ae 100644 --- a/build/shared/examples/02.Digital/Debounce/Debounce.ino +++ b/build/shared/examples/02.Digital/Debounce/Debounce.ino @@ -28,7 +28,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/Debounce - */ +*/ // constants won't change. They're used here to // set pin numbers: diff --git a/build/shared/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino b/build/shared/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino index 5ca6e0996..91783d7e9 100644 --- a/build/shared/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino +++ b/build/shared/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino @@ -19,7 +19,7 @@ This example code is in the public domain - */ +*/ void setup() { //start serial connection diff --git a/build/shared/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino b/build/shared/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino index b72d7b828..73ea4f026 100644 --- a/build/shared/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino +++ b/build/shared/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino @@ -23,7 +23,7 @@ http://www.arduino.cc/en/Tutorial/ButtonStateChange - */ +*/ // this constant won't change: const int buttonPin = 2; // the pin that the pushbutton is attached to diff --git a/build/shared/examples/02.Digital/toneKeyboard/toneKeyboard.ino b/build/shared/examples/02.Digital/toneKeyboard/toneKeyboard.ino index 90a027ff1..035c4c175 100644 --- a/build/shared/examples/02.Digital/toneKeyboard/toneKeyboard.ino +++ b/build/shared/examples/02.Digital/toneKeyboard/toneKeyboard.ino @@ -16,7 +16,7 @@ http://www.arduino.cc/en/Tutorial/Tone3 - */ +*/ #include "pitches.h" diff --git a/build/shared/examples/02.Digital/toneMelody/toneMelody.ino b/build/shared/examples/02.Digital/toneMelody/toneMelody.ino index c4024b8e8..9f86a1cac 100644 --- a/build/shared/examples/02.Digital/toneMelody/toneMelody.ino +++ b/build/shared/examples/02.Digital/toneMelody/toneMelody.ino @@ -14,7 +14,7 @@ http://www.arduino.cc/en/Tutorial/Tone - */ +*/ #include "pitches.h" // notes in the melody: diff --git a/build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino b/build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino index 3b504e5f0..0abe1c6e4 100644 --- a/build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino +++ b/build/shared/examples/02.Digital/toneMultiple/toneMultiple.ino @@ -14,7 +14,7 @@ http://www.arduino.cc/en/Tutorial/Tone4 - */ +*/ void setup() { diff --git a/build/shared/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino b/build/shared/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino index bb44e76ae..2090b1902 100644 --- a/build/shared/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino +++ b/build/shared/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino @@ -16,7 +16,7 @@ http://www.arduino.cc/en/Tutorial/Tone2 - */ +*/ void setup() { diff --git a/build/shared/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino b/build/shared/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino index 337c8caf6..79eb7bd23 100644 --- a/build/shared/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino +++ b/build/shared/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - */ +*/ // These constants won't change. They're used to give names // to the pins used: diff --git a/build/shared/examples/03.Analog/AnalogInput/AnalogInput.ino b/build/shared/examples/03.Analog/AnalogInput/AnalogInput.ino index e6367798f..6259f70bb 100644 --- a/build/shared/examples/03.Analog/AnalogInput/AnalogInput.ino +++ b/build/shared/examples/03.Analog/AnalogInput/AnalogInput.ino @@ -25,7 +25,7 @@ http://www.arduino.cc/en/Tutorial/AnalogInput - */ +*/ int sensorPin = A0; // select the input pin for the potentiometer int ledPin = 13; // select the pin for the LED diff --git a/build/shared/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino b/build/shared/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino index ce2c59777..0e508ebbe 100644 --- a/build/shared/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino +++ b/build/shared/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino @@ -12,7 +12,7 @@ This example code is in the public domain. - */ +*/ // These constants won't change. They're used to give names // to the pins used: const int lowestPin = 2; diff --git a/build/shared/examples/03.Analog/Calibration/Calibration.ino b/build/shared/examples/03.Analog/Calibration/Calibration.ino index 3740ac4e5..3853182f0 100644 --- a/build/shared/examples/03.Analog/Calibration/Calibration.ino +++ b/build/shared/examples/03.Analog/Calibration/Calibration.ino @@ -24,7 +24,7 @@ This example code is in the public domain. - */ +*/ // These constants won't change: const int sensorPin = A0; // pin that the sensor is attached to diff --git a/build/shared/examples/03.Analog/Fading/Fading.ino b/build/shared/examples/03.Analog/Fading/Fading.ino index 95f3bc2fe..53378c069 100644 --- a/build/shared/examples/03.Analog/Fading/Fading.ino +++ b/build/shared/examples/03.Analog/Fading/Fading.ino @@ -15,7 +15,7 @@ This example code is in the public domain. - */ +*/ int ledPin = 9; // LED connected to digital pin 9 diff --git a/build/shared/examples/04.Communication/ASCIITable/ASCIITable.ino b/build/shared/examples/04.Communication/ASCIITable/ASCIITable.ino index 658c3bc61..e336c3e22 100644 --- a/build/shared/examples/04.Communication/ASCIITable/ASCIITable.ino +++ b/build/shared/examples/04.Communication/ASCIITable/ASCIITable.ino @@ -18,7 +18,7 @@ - */ +*/ void setup() { //Initialize serial and wait for port to open: Serial.begin(9600); diff --git a/build/shared/examples/04.Communication/Dimmer/Dimmer.ino b/build/shared/examples/04.Communication/Dimmer/Dimmer.ino index d1a28aaf5..0032c3bcc 100644 --- a/build/shared/examples/04.Communication/Dimmer/Dimmer.ino +++ b/build/shared/examples/04.Communication/Dimmer/Dimmer.ino @@ -19,7 +19,7 @@ http://www.arduino.cc/en/Tutorial/Dimmer - */ +*/ const int ledPin = 9; // the pin that the LED is attached to @@ -80,7 +80,7 @@ void loop() { // a single byte port.write(mouseX); } - */ +*/ /* Max/MSP v5 patch for this example diff --git a/build/shared/examples/04.Communication/Graph/Graph.ino b/build/shared/examples/04.Communication/Graph/Graph.ino index 7786014a4..6eba7eca9 100644 --- a/build/shared/examples/04.Communication/Graph/Graph.ino +++ b/build/shared/examples/04.Communication/Graph/Graph.ino @@ -24,7 +24,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/Graph - */ +*/ void setup() { // initialize the serial communication: diff --git a/build/shared/examples/04.Communication/Midi/Midi.ino b/build/shared/examples/04.Communication/Midi/Midi.ino index ac3966f2f..3465d0bdb 100644 --- a/build/shared/examples/04.Communication/Midi/Midi.ino +++ b/build/shared/examples/04.Communication/Midi/Midi.ino @@ -20,7 +20,7 @@ http://www.arduino.cc/en/Tutorial/Midi - */ +*/ void setup() { // Set MIDI baud rate: diff --git a/build/shared/examples/04.Communication/MultiSerial/MultiSerial.ino b/build/shared/examples/04.Communication/MultiSerial/MultiSerial.ino index f79951073..f5474ac02 100644 --- a/build/shared/examples/04.Communication/MultiSerial/MultiSerial.ino +++ b/build/shared/examples/04.Communication/MultiSerial/MultiSerial.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - */ +*/ void setup() { diff --git a/build/shared/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino b/build/shared/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino index 008108a77..ed756307a 100644 --- a/build/shared/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino +++ b/build/shared/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino @@ -21,7 +21,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/PhysicalPixel - */ +*/ const int ledPin = 13; // the pin that the LED is attached to int incomingByte; // a variable to read incoming serial data into @@ -121,7 +121,7 @@ void loop() { } - */ +*/ /* Max/MSP version 5 patch to run with this example: diff --git a/build/shared/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino b/build/shared/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino index 181081634..406afc2dc 100644 --- a/build/shared/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino +++ b/build/shared/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino @@ -13,12 +13,12 @@ created 13 Apr 2012 by Tom Igoe - + modified 14 Mar 2016 by Arturo Guadalupi This example code is in the public domain. - */ +*/ // pins for the LEDs: const int redPin = 3; diff --git a/build/shared/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino b/build/shared/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino index a9774ff2a..b514e076d 100644 --- a/build/shared/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino +++ b/build/shared/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino @@ -22,7 +22,7 @@ http://www.arduino.cc/en/Tutorial/SerialCallResponse - */ +*/ int firstSensor = 0; // first analog sensor int secondSensor = 0; // second analog sensor diff --git a/build/shared/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino b/build/shared/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino index de874d884..125fc5680 100644 --- a/build/shared/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino +++ b/build/shared/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino @@ -26,7 +26,7 @@ http://www.arduino.cc/en/Tutorial/SerialCallResponseASCII - */ +*/ int firstSensor = 0; // first analog sensor int secondSensor = 0; // second analog sensor diff --git a/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino b/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino index 0594ab802..3f7db628e 100644 --- a/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino +++ b/build/shared/examples/04.Communication/SerialEvent/SerialEvent.ino @@ -10,7 +10,7 @@ NOTE: The serialEvent() feature is not available on the Leonardo, Micro, or other ATmega32U4 based boards. - + Created 9 May 2011 by Tom Igoe @@ -18,7 +18,7 @@ http://www.arduino.cc/en/Tutorial/SerialEvent - */ +*/ String inputString = ""; // a String to hold incoming data boolean stringComplete = false; // whether the string is complete @@ -45,7 +45,7 @@ void loop() { hardware serial RX. This routine is run between each time loop() runs, so using delay inside loop can delay response. Multiple bytes of data may be available. - */ +*/ void serialEvent() { while (Serial.available()) { // get the new byte: diff --git a/build/shared/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino b/build/shared/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino index e278b534b..b984b7a28 100644 --- a/build/shared/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino +++ b/build/shared/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino @@ -14,7 +14,7 @@ by Tom Igoe and Scott Fitzgerald This example code is in the public domain. - */ +*/ const int redPin = A0; // sensor to control red color const int greenPin = A1; // sensor to control green color @@ -86,7 +86,7 @@ void loop() { } } - */ +*/ /* Max/MSP patch for this example diff --git a/build/shared/examples/05.Control/Arrays/Arrays.ino b/build/shared/examples/05.Control/Arrays/Arrays.ino index 80f1b6ea3..a05e8a137 100644 --- a/build/shared/examples/05.Control/Arrays/Arrays.ino +++ b/build/shared/examples/05.Control/Arrays/Arrays.ino @@ -19,7 +19,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/Array - */ +*/ int timer = 100; // The higher the number, the slower the timing. int ledPins[] = { diff --git a/build/shared/examples/05.Control/ForLoopIteration/ForLoopIteration.ino b/build/shared/examples/05.Control/ForLoopIteration/ForLoopIteration.ino index 41690fc14..54ad38a26 100644 --- a/build/shared/examples/05.Control/ForLoopIteration/ForLoopIteration.ino +++ b/build/shared/examples/05.Control/ForLoopIteration/ForLoopIteration.ino @@ -15,7 +15,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/ForLoop - */ +*/ int timer = 100; // The higher the number, the slower the timing. diff --git a/build/shared/examples/05.Control/IfStatementConditional/IfStatementConditional.ino b/build/shared/examples/05.Control/IfStatementConditional/IfStatementConditional.ino index 52598dd97..a9fa64f0f 100644 --- a/build/shared/examples/05.Control/IfStatementConditional/IfStatementConditional.ino +++ b/build/shared/examples/05.Control/IfStatementConditional/IfStatementConditional.ino @@ -23,7 +23,7 @@ http://www.arduino.cc/en/Tutorial/IfStatement - */ +*/ // These constants won't change: const int analogPin = A0; // pin that the sensor is attached to diff --git a/build/shared/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino b/build/shared/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino index 1b84265da..9db1980fe 100644 --- a/build/shared/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino +++ b/build/shared/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino @@ -26,7 +26,7 @@ http://www.arduino.cc/en/Tutorial/WhileLoop - */ +*/ // These constants won't change: diff --git a/build/shared/examples/05.Control/switchCase/switchCase.ino b/build/shared/examples/05.Control/switchCase/switchCase.ino index 040526d8e..b7f82dcb5 100644 --- a/build/shared/examples/05.Control/switchCase/switchCase.ino +++ b/build/shared/examples/05.Control/switchCase/switchCase.ino @@ -20,7 +20,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/SwitchCase - */ +*/ // these constants won't change. They are the // lowest and highest readings you get from your sensor: diff --git a/build/shared/examples/05.Control/switchCase2/switchCase2.ino b/build/shared/examples/05.Control/switchCase2/switchCase2.ino index fce099ada..c626ebd63 100644 --- a/build/shared/examples/05.Control/switchCase2/switchCase2.ino +++ b/build/shared/examples/05.Control/switchCase2/switchCase2.ino @@ -18,7 +18,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/SwitchCase2 - */ +*/ void setup() { // initialize serial communication: diff --git a/build/shared/examples/06.Sensors/Knock/Knock.ino b/build/shared/examples/06.Sensors/Knock/Knock.ino index fc2f9e8b9..e5c130732 100644 --- a/build/shared/examples/06.Sensors/Knock/Knock.ino +++ b/build/shared/examples/06.Sensors/Knock/Knock.ino @@ -19,7 +19,7 @@ This example code is in the public domain. - */ +*/ // these constants won't change: diff --git a/build/shared/examples/06.Sensors/Memsic2125/Memsic2125.ino b/build/shared/examples/06.Sensors/Memsic2125/Memsic2125.ino index 20f9612e8..572a93dfc 100644 --- a/build/shared/examples/06.Sensors/Memsic2125/Memsic2125.ino +++ b/build/shared/examples/06.Sensors/Memsic2125/Memsic2125.ino @@ -21,7 +21,7 @@ This example code is in the public domain. - */ +*/ // these constants won't change: const int xPin = 2; // X output of the accelerometer diff --git a/build/shared/examples/06.Sensors/Ping/Ping.ino b/build/shared/examples/06.Sensors/Ping/Ping.ino index 078a99b52..a2e410d64 100644 --- a/build/shared/examples/06.Sensors/Ping/Ping.ino +++ b/build/shared/examples/06.Sensors/Ping/Ping.ino @@ -20,7 +20,7 @@ This example code is in the public domain. - */ +*/ // this constant won't change. It's the pin number // of the sensor's output: diff --git a/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino b/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino index 00df13e0d..84cf63596 100644 --- a/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino +++ b/build/shared/examples/07.Display/RowColumnScanning/RowColumnScanning.ino @@ -31,7 +31,7 @@ http://www.arduino.cc/en/Tutorial/RowColumnScanning see also http://www.tigoe.net/pcomp/code/category/arduinowiring/514 for more - */ +*/ // 2-dimensional array of row pin numbers: diff --git a/build/shared/examples/07.Display/barGraph/barGraph.ino b/build/shared/examples/07.Display/barGraph/barGraph.ino index fdd94ae8f..6968c0c0c 100644 --- a/build/shared/examples/07.Display/barGraph/barGraph.ino +++ b/build/shared/examples/07.Display/barGraph/barGraph.ino @@ -18,7 +18,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/BarGraph - */ +*/ // these constants won't change: diff --git a/build/shared/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino b/build/shared/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino index cc85eab10..3fbdeb145 100644 --- a/build/shared/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino +++ b/build/shared/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino @@ -9,7 +9,7 @@ by Tom Igoe This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino b/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino index 724a9b48d..fc13191c3 100644 --- a/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino +++ b/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino @@ -11,7 +11,7 @@ http://www.arduino.cc/en/Tutorial/StringAdditionOperator This example code is in the public domain. - */ +*/ // declare three Strings: String stringOne, stringTwo, stringThree; diff --git a/build/shared/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino b/build/shared/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino index 94a2c82c8..da01481cf 100644 --- a/build/shared/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino +++ b/build/shared/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringAppendOperator This example code is in the public domain. - */ +*/ String stringOne, stringTwo; diff --git a/build/shared/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino b/build/shared/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino index ae5d51ba2..2ec8c93f3 100644 --- a/build/shared/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino +++ b/build/shared/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringCaseChanges This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringCharacters/StringCharacters.ino b/build/shared/examples/08.Strings/StringCharacters/StringCharacters.ino index 7cd02b21d..44eabe87b 100644 --- a/build/shared/examples/08.Strings/StringCharacters/StringCharacters.ino +++ b/build/shared/examples/08.Strings/StringCharacters/StringCharacters.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringCharacters This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino b/build/shared/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino index 89fe37854..56a2a829b 100644 --- a/build/shared/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino +++ b/build/shared/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringComparisonOperators This example code is in the public domain. - */ +*/ String stringOne, stringTwo; diff --git a/build/shared/examples/08.Strings/StringConstructors/StringConstructors.ino b/build/shared/examples/08.Strings/StringConstructors/StringConstructors.ino index 70310a8e1..9277c6ab5 100644 --- a/build/shared/examples/08.Strings/StringConstructors/StringConstructors.ino +++ b/build/shared/examples/08.Strings/StringConstructors/StringConstructors.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringConstructors This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringIndexOf/StringIndexOf.ino b/build/shared/examples/08.Strings/StringIndexOf/StringIndexOf.ino index d97f49104..8de5055cc 100644 --- a/build/shared/examples/08.Strings/StringIndexOf/StringIndexOf.ino +++ b/build/shared/examples/08.Strings/StringIndexOf/StringIndexOf.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringIndexOf This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringLength/StringLength.ino b/build/shared/examples/08.Strings/StringLength/StringLength.ino index c7ed18b17..bc748349d 100644 --- a/build/shared/examples/08.Strings/StringLength/StringLength.ino +++ b/build/shared/examples/08.Strings/StringLength/StringLength.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringLengthTrim This example code is in the public domain. - */ +*/ String txtMsg = ""; // a string for incoming text unsigned int lastStringLength = txtMsg.length(); // previous length of the String diff --git a/build/shared/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino b/build/shared/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino index 78b4d1638..d68ef8f29 100644 --- a/build/shared/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino +++ b/build/shared/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringLengthTrim This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringReplace/StringReplace.ino b/build/shared/examples/08.Strings/StringReplace/StringReplace.ino index ecc0cb1a5..626217065 100644 --- a/build/shared/examples/08.Strings/StringReplace/StringReplace.ino +++ b/build/shared/examples/08.Strings/StringReplace/StringReplace.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringReplace This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino b/build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino index 359d1b948..bfd72fd93 100644 --- a/build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino +++ b/build/shared/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringStartsWithEndsWith This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringSubstring/StringSubstring.ino b/build/shared/examples/08.Strings/StringSubstring/StringSubstring.ino index 4671c0523..9772afaca 100644 --- a/build/shared/examples/08.Strings/StringSubstring/StringSubstring.ino +++ b/build/shared/examples/08.Strings/StringSubstring/StringSubstring.ino @@ -10,7 +10,7 @@ http://www.arduino.cc/en/Tutorial/StringSubstring This example code is in the public domain. - */ +*/ void setup() { // Open serial communications and wait for port to open: diff --git a/build/shared/examples/08.Strings/StringToInt/StringToInt.ino b/build/shared/examples/08.Strings/StringToInt/StringToInt.ino index 7fdb6ed92..da3e1261d 100644 --- a/build/shared/examples/08.Strings/StringToInt/StringToInt.ino +++ b/build/shared/examples/08.Strings/StringToInt/StringToInt.ino @@ -11,7 +11,7 @@ by Tom Igoe This example code is in the public domain. - */ +*/ String inString = ""; // string to hold input diff --git a/build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino b/build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino index c2466828b..1ddf63ed8 100644 --- a/build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino +++ b/build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino @@ -23,7 +23,7 @@ This example is in the public domain http://www.arduino.cc/en/Tutorial/KeyboardLogout - */ +*/ #define OSX 0 #define WINDOWS 1 diff --git a/build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino b/build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino index 4f46057b7..d55453d1b 100644 --- a/build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino +++ b/build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino @@ -18,7 +18,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/KeyboardMessage - */ +*/ #include "Keyboard.h" diff --git a/build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino b/build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino index 50461e608..7691aff0f 100644 --- a/build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino +++ b/build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino @@ -25,7 +25,7 @@ This example is in the public domain http://www.arduino.cc/en/Tutorial/KeyboardReprogram - */ +*/ #include "Keyboard.h" diff --git a/build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino b/build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino index 4deae41ac..0e9c7e436 100644 --- a/build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino +++ b/build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino @@ -17,7 +17,7 @@ This example code is in the public domain. http://www.arduino.cc/en/Tutorial/KeyboardSerial - */ +*/ #include "Keyboard.h" diff --git a/build/shared/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino b/build/shared/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino index bf258ef78..6f92161b8 100644 --- a/build/shared/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino +++ b/build/shared/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino @@ -19,7 +19,7 @@ this code is in the public domain - */ +*/ #include "Keyboard.h" #include "Mouse.h" diff --git a/build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino b/build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino index db596bb1d..7f1315391 100644 --- a/build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino +++ b/build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino @@ -22,7 +22,7 @@ this code is in the public domain - */ +*/ #include "Mouse.h" diff --git a/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino b/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino index 46b54e01c..8b50376e5 100644 --- a/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino +++ b/build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino @@ -26,7 +26,7 @@ this code is in the public domain - */ +*/ #include "Mouse.h" @@ -98,7 +98,7 @@ void loop() { /* reads an axis (0 or 1 for x or y) and scales the analog input range to a range from 0 to - */ +*/ int readAxis(int thisAxis) { // read the analog input: diff --git a/build/shared/examples/10.StarterKit_BasicKit/p03_LoveOMeter/p03_LoveOMeter.ino b/build/shared/examples/10.StarterKit_BasicKit/p03_LoveOMeter/p03_LoveOMeter.ino index 8bd82fed7..7949de3a6 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p03_LoveOMeter/p03_LoveOMeter.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p03_LoveOMeter/p03_LoveOMeter.ino @@ -16,7 +16,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // named constant for the pin the sensor is connected to const int sensorPin = A0; diff --git a/build/shared/examples/10.StarterKit_BasicKit/p04_ColorMixingLamp/p04_ColorMixingLamp.ino b/build/shared/examples/10.StarterKit_BasicKit/p04_ColorMixingLamp/p04_ColorMixingLamp.ino index 8b7fe862b..44c973c94 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p04_ColorMixingLamp/p04_ColorMixingLamp.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p04_ColorMixingLamp/p04_ColorMixingLamp.ino @@ -20,7 +20,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ const int greenLEDPin = 9; // LED connected to digital pin 9 const int redLEDPin = 10; // LED connected to digital pin 10 @@ -89,7 +89,7 @@ void loop() { Serial.println(blueValue); /* - Now that you have a usable value, it's time to PWM the LED. + Now that you have a usable value, it's time to PWM the LED. */ analogWrite(redLEDPin, redValue); analogWrite(greenLEDPin, greenValue); diff --git a/build/shared/examples/10.StarterKit_BasicKit/p05_ServoMoodIndicator/p05_ServoMoodIndicator.ino b/build/shared/examples/10.StarterKit_BasicKit/p05_ServoMoodIndicator/p05_ServoMoodIndicator.ino index e545c9d55..d51a49095 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p05_ServoMoodIndicator/p05_ServoMoodIndicator.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p05_ServoMoodIndicator/p05_ServoMoodIndicator.ino @@ -16,7 +16,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // include the Servo library #include diff --git a/build/shared/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino b/build/shared/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino index 183e7fbe2..b4454b6e0 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino @@ -17,7 +17,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // named constant for the switch pin const int switchPin = 8; diff --git a/build/shared/examples/10.StarterKit_BasicKit/p09_MotorizedPinwheel/p09_MotorizedPinwheel.ino b/build/shared/examples/10.StarterKit_BasicKit/p09_MotorizedPinwheel/p09_MotorizedPinwheel.ino index d858f1a48..71592fe9f 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p09_MotorizedPinwheel/p09_MotorizedPinwheel.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p09_MotorizedPinwheel/p09_MotorizedPinwheel.ino @@ -19,7 +19,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // named constants for the switch and motor pins const int switchPin = 2; // the number of the switch pin diff --git a/build/shared/examples/10.StarterKit_BasicKit/p10_Zoetrope/p10_Zoetrope.ino b/build/shared/examples/10.StarterKit_BasicKit/p10_Zoetrope/p10_Zoetrope.ino index d9126efde..b650f3796 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p10_Zoetrope/p10_Zoetrope.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p10_Zoetrope/p10_Zoetrope.ino @@ -20,7 +20,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ const int controlPin1 = 2; // connected to pin 7 on the H-bridge const int controlPin2 = 3; // connected to pin 2 on the H-bridge diff --git a/build/shared/examples/10.StarterKit_BasicKit/p11_CrystalBall/p11_CrystalBall.ino b/build/shared/examples/10.StarterKit_BasicKit/p11_CrystalBall/p11_CrystalBall.ino index 518f7a8b3..1c2904a6e 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p11_CrystalBall/p11_CrystalBall.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p11_CrystalBall/p11_CrystalBall.ino @@ -19,7 +19,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // include the library code: #include diff --git a/build/shared/examples/10.StarterKit_BasicKit/p12_KnockLock/p12_KnockLock.ino b/build/shared/examples/10.StarterKit_BasicKit/p12_KnockLock/p12_KnockLock.ino index 545e0e504..e8c8d445f 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p12_KnockLock/p12_KnockLock.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p12_KnockLock/p12_KnockLock.ino @@ -24,7 +24,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // import the library #include diff --git a/build/shared/examples/10.StarterKit_BasicKit/p13_TouchSensorLamp/p13_TouchSensorLamp.ino b/build/shared/examples/10.StarterKit_BasicKit/p13_TouchSensorLamp/p13_TouchSensorLamp.ino index 396c127d3..2c4196ce2 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p13_TouchSensorLamp/p13_TouchSensorLamp.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p13_TouchSensorLamp/p13_TouchSensorLamp.ino @@ -21,7 +21,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ // import the library (must be located in the // Arduino/libraries directory) diff --git a/build/shared/examples/10.StarterKit_BasicKit/p14_TweakTheArduinoLogo/p14_TweakTheArduinoLogo.ino b/build/shared/examples/10.StarterKit_BasicKit/p14_TweakTheArduinoLogo/p14_TweakTheArduinoLogo.ino index 5411b1aea..4949875f7 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p14_TweakTheArduinoLogo/p14_TweakTheArduinoLogo.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p14_TweakTheArduinoLogo/p14_TweakTheArduinoLogo.ino @@ -10,7 +10,7 @@ Software required : Processing (3.0 or newer) http://processing.org - Active Internet connection + Active Internet connection Created 18 September 2012 by Scott Fitzgerald @@ -18,7 +18,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ void setup() { @@ -99,4 +99,4 @@ void loop() { // draw the Arduino logo image(logo, 0, 0); } - */ +*/ diff --git a/build/shared/examples/10.StarterKit_BasicKit/p15_HackingButtons/p15_HackingButtons.ino b/build/shared/examples/10.StarterKit_BasicKit/p15_HackingButtons/p15_HackingButtons.ino index 313a38c2d..3ec039b4f 100644 --- a/build/shared/examples/10.StarterKit_BasicKit/p15_HackingButtons/p15_HackingButtons.ino +++ b/build/shared/examples/10.StarterKit_BasicKit/p15_HackingButtons/p15_HackingButtons.ino @@ -16,7 +16,7 @@ http://www.arduino.cc/starterKit This example code is part of the public domain - */ +*/ const int optoPin = 2; // the pin the optocoupler is connected to diff --git a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index bc0739bc5..4180a963b 100644 --- a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -24,7 +24,7 @@ // // Alternatively you can use any other digital pin by configuring software ('BitBanged') // SPI and having appropriate defines for PIN_MOSI, PIN_MISO and PIN_SCK. -// +// // IMPORTANT: When using an Arduino that is not 5V tolerant (Due, Zero, ...) // as the programmer, make sure to not expose any of the programmer's pins to 5V. // A simple way to accomplish this is to power the complete system (programmer @@ -68,7 +68,7 @@ // Configure which pins to use: // The standard pin configuration. -#ifndef ARDUINO_HOODLOADER2 +#ifndef ARDUINO_HOODLOADER2 #define RESET 10 // Use pin 10 to reset the target rather than SS #define LED_HB 9 @@ -88,10 +88,10 @@ #endif -// HOODLOADER2 means running sketches on the ATmega16U2 +// HOODLOADER2 means running sketches on the ATmega16U2 // serial converter chips on Uno or Mega boards. // We must use pins that are broken out: -#else +#else #define RESET 4 #define LED_HB 7 @@ -166,51 +166,51 @@ void pulse(int pin, int times); #define SPI_MODE0 0x00 class SPISettings { -public: - // clock is in Hz - SPISettings(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) : clock(clock){ - (void) bitOrder; - (void) dataMode; - }; + public: + // clock is in Hz + SPISettings(uint32_t clock, uint8_t bitOrder, uint8_t dataMode) : clock(clock) { + (void) bitOrder; + (void) dataMode; + }; -private: - uint32_t clock; + private: + uint32_t clock; -friend class BitBangedSPI; + friend class BitBangedSPI; }; class BitBangedSPI { -public: - void begin() { - digitalWrite(PIN_SCK, LOW); - digitalWrite(PIN_MOSI, LOW); - pinMode(PIN_SCK, OUTPUT); - pinMode(PIN_MOSI, OUTPUT); - pinMode(PIN_MISO, INPUT); - } - - void beginTransaction(SPISettings settings) { - pulseWidth = (500000 + settings.clock - 1) / settings.clock; - if (pulseWidth == 0) - pulseWidth = 1; - } - - void end() {} - - uint8_t transfer (uint8_t b) { - for (unsigned int i = 0; i < 8; ++i) { - digitalWrite(PIN_MOSI, (b & 0x80) ? HIGH : LOW); - digitalWrite(PIN_SCK, HIGH); - delayMicroseconds(pulseWidth); - b = (b << 1) | digitalRead(PIN_MISO); - digitalWrite(PIN_SCK, LOW); // slow pulse - delayMicroseconds(pulseWidth); + public: + void begin() { + digitalWrite(PIN_SCK, LOW); + digitalWrite(PIN_MOSI, LOW); + pinMode(PIN_SCK, OUTPUT); + pinMode(PIN_MOSI, OUTPUT); + pinMode(PIN_MISO, INPUT); } - return b; - } -private: - unsigned long pulseWidth; // in microseconds + void beginTransaction(SPISettings settings) { + pulseWidth = (500000 + settings.clock - 1) / settings.clock; + if (pulseWidth == 0) + pulseWidth = 1; + } + + void end() {} + + uint8_t transfer (uint8_t b) { + for (unsigned int i = 0; i < 8; ++i) { + digitalWrite(PIN_MOSI, (b & 0x80) ? HIGH : LOW); + digitalWrite(PIN_SCK, HIGH); + delayMicroseconds(pulseWidth); + b = (b << 1) | digitalRead(PIN_MISO); + digitalWrite(PIN_SCK, LOW); // slow pulse + delayMicroseconds(pulseWidth); + } + return b; + } + + private: + unsigned long pulseWidth; // in microseconds }; static BitBangedSPI SPI;