Skip to content

Commit

Permalink
Update all URLs in example comments
Browse files Browse the repository at this point in the history
Some of the URLs were broken.

Almost all of the URLs had changed, but were still working due to redirects. However, these redirects might stop working
at some time in the future (as happened during the last round of website reorganization) so it's safest to point them to
the final location.
  • Loading branch information
per1234 committed Mar 26, 2021
1 parent c8fae22 commit 972f6e5
Show file tree
Hide file tree
Showing 76 changed files with 81 additions and 83 deletions.
2 changes: 1 addition & 1 deletion examples/01.Basics/Blink/Blink.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Blink
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
Expand Down
2 changes: 1 addition & 1 deletion examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/DigitalReadSerial
https://www.arduino.cc/en/Tutorial/BuiltInExamples/DigitalReadSerial
*/

// digital pin 2 has a pushbutton attached to it. Give it a name:
Expand Down
2 changes: 1 addition & 1 deletion examples/01.Basics/Fade/Fade.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Fade
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Fade
*/

int led = 9; // the PWM pin the LED is attached to
Expand Down
2 changes: 1 addition & 1 deletion examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/ReadAnalogVoltage
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ReadAnalogVoltage
*/

// the setup routine runs once when you press reset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
https://www.arduino.cc/en/Tutorial/BuiltInExamples/BlinkWithoutDelay
*/

// constants won't change. Used here to set a pin number:
Expand Down
2 changes: 1 addition & 1 deletion examples/02.Digital/Button/Button.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Button
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Button
*/

// constants won't change. They're used here to set pin numbers:
Expand Down
2 changes: 1 addition & 1 deletion examples/02.Digital/Debounce/Debounce.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Debounce
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Debounce
*/

// constants won't change. They're used here to set pin numbers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/InputPullupSerial
https://www.arduino.cc/en/Tutorial/BuiltInExamples/InputPullupSerial
*/

void setup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/ButtonStateChange
https://www.arduino.cc/en/Tutorial/BuiltInExamples/StateChangeDetection
*/

// this constant won't change:
Expand Down
2 changes: 1 addition & 1 deletion examples/02.Digital/toneKeyboard/toneKeyboard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Tone3
https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneKeyboard
*/

#include "pitches.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/02.Digital/toneMelody/toneMelody.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Tone
https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody
*/

#include "pitches.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/02.Digital/toneMultiple/toneMultiple.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Tone4
https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMultiple
*/

void setup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Tone2
https://www.arduino.cc/en/Tutorial/BuiltInExamples/tonePitchFollower
*/

void setup() {
Expand Down
2 changes: 1 addition & 1 deletion examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/AnalogInOutSerial
https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogInOutSerial
*/

// These constants won't change. They're used to give names to the pins used:
Expand Down
2 changes: 1 addition & 1 deletion examples/03.Analog/AnalogInput/AnalogInput.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/AnalogInput
https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogInput
*/

int sensorPin = A0; // select the input pin for the potentiometer
Expand Down
2 changes: 1 addition & 1 deletion examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/AnalogWriteMega
https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogWriteMega
*/

// These constants won't change. They're used to give names to the pins used:
Expand Down
2 changes: 1 addition & 1 deletion examples/03.Analog/Calibration/Calibration.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Calibration
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Calibration
*/

// These constants won't change:
Expand Down
2 changes: 1 addition & 1 deletion examples/03.Analog/Fading/Fading.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Fading
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Fading
*/

int ledPin = 9; // LED connected to digital pin 9
Expand Down
2 changes: 1 addition & 1 deletion examples/03.Analog/Smoothing/Smoothing.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Smoothing
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Smoothing
*/

// Define the number of samples to keep track of. The higher the number, the
Expand Down
2 changes: 1 addition & 1 deletion examples/04.Communication/ASCIITable/ASCIITable.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/ASCIITable
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ASCIITable
*/

void setup() {
Expand Down
2 changes: 1 addition & 1 deletion examples/04.Communication/Dimmer/Dimmer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Dimmer
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Dimmer
*/

const int ledPin = 9; // the pin that the LED is attached to
Expand Down
2 changes: 1 addition & 1 deletion examples/04.Communication/Graph/Graph.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Graph
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Graph
*/

void setup() {
Expand Down
2 changes: 1 addition & 1 deletion examples/04.Communication/Midi/Midi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Midi
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Midi
*/

void setup() {
Expand Down
2 changes: 1 addition & 1 deletion examples/04.Communication/PhysicalPixel/PhysicalPixel.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/PhysicalPixel
https://www.arduino.cc/en/Tutorial/BuiltInExamples/PhysicalPixel
*/

const int ledPin = 13; // the pin that the LED is attached to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/SerialCallResponse
https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialCallResponse
*/

int firstSensor = 0; // first analog sensor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/SerialCallResponseASCII
https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialCallResponseASCII
*/

int firstSensor = 0; // first analog sensor
Expand Down
2 changes: 1 addition & 1 deletion examples/04.Communication/SerialEvent/SerialEvent.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/SerialEvent
https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialEvent
*/

String inputString = ""; // a String to hold incoming data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/VirtualColorMixer
https://www.arduino.cc/en/Tutorial/BuiltInExamples/VirtualColorMixer
*/

const int redPin = A0; // sensor to control red color
Expand Down
2 changes: 1 addition & 1 deletion examples/05.Control/Arrays/Arrays.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Array
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Arrays
*/

int timer = 100; // The higher the number, the slower the timing.
Expand Down
2 changes: 1 addition & 1 deletion examples/05.Control/ForLoopIteration/ForLoopIteration.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/ForLoop
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ForLoopIteration
*/

int timer = 100; // The higher the number, the slower the timing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/IfStatement
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ifStatementConditional
*/

// These constants won't change:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/WhileLoop
https://www.arduino.cc/en/Tutorial/BuiltInExamples/WhileStatementConditional
*/


Expand Down
2 changes: 1 addition & 1 deletion examples/05.Control/switchCase/switchCase.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/SwitchCase
https://www.arduino.cc/en/Tutorial/BuiltInExamples/SwitchCase
*/

// these constants won't change. They are the lowest and highest readings you
Expand Down
2 changes: 1 addition & 1 deletion examples/05.Control/switchCase2/switchCase2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/SwitchCase2
https://www.arduino.cc/en/Tutorial/BuiltInExamples/SwitchCase2
*/

void setup() {
Expand Down
4 changes: 2 additions & 2 deletions examples/06.Sensors/ADXL3xx/ADXL3xx.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Reads an Analog Devices ADXL3xx accelerometer and communicates the
acceleration to the computer. The pins used are designed to be easily
compatible with the breakout boards from SparkFun, available from:
http://www.sparkfun.com/commerce/categories.php?c=80
https://www.sparkfun.com/categories/80
The circuit:
- analog 0: accelerometer self test
Expand All @@ -21,7 +21,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/ADXL3xx
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ADXL3xx
*/

// these constants describe the pins. They won't change:
Expand Down
2 changes: 1 addition & 1 deletion examples/06.Sensors/Knock/Knock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Knock
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Knock
*/


Expand Down
2 changes: 1 addition & 1 deletion examples/06.Sensors/Memsic2125/Memsic2125.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Memsic2125
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Memsic2125
*/

// these constants won't change:
Expand Down
4 changes: 2 additions & 2 deletions examples/06.Sensors/Ping/Ping.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/Ping
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Ping
*/

// this constant won't change. It's the pin number of the sensor's output:
Expand Down Expand Up @@ -67,7 +67,7 @@ long microsecondsToInches(long microseconds) {
// microseconds per inch (i.e. sound travels at 1130 feet per second).
// This gives the distance travelled by the ping, outbound and return,
// so we divide by 2 to get the distance of the obstacle.
// See: http://www.parallax.com/dl/docs/prod/acc/28015-PING-v1.3.pdf
// See: https://www.parallax.com/package/ping-ultrasonic-distance-sensor-downloads/
return microseconds / 74 / 2;
}

Expand Down
6 changes: 2 additions & 4 deletions examples/07.Display/RowColumnScanning/RowColumnScanning.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This example controls an 8x8 LED matrix using two analog inputs.
This example works for the Lumex LDM-24488NI Matrix. See
http://sigma.octopart.com/140413/datasheet/Lumex-LDM-24488NI.pdf
https://sigma.octopart.com/140413/datasheet/Lumex-LDM-24488NI.pdf
for the pin connections.
For other LED cathode column matrixes, you should only need to change the pin
Expand All @@ -28,9 +28,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/RowColumnScanning
see also http://www.tigoe.net/pcomp/code/category/arduinowiring for more
https://www.arduino.cc/en/Tutorial/BuiltInExamples/RowColumnScanning
*/

// 2-dimensional array of row pin numbers:
Expand Down
2 changes: 1 addition & 1 deletion examples/07.Display/barGraph/barGraph.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/BarGraph
https://www.arduino.cc/en/Tutorial/BuiltInExamples/BarGraph
*/

// these constants won't change:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/CharacterAnalysis
https://www.arduino.cc/en/Tutorial/BuiltInExamples/CharacterAnalysis
*/

void setup() {
Expand Down
Loading

0 comments on commit 972f6e5

Please sign in to comment.