From dfbe14a6d8cd8aaa830dbd54f5d2d58a39c78b72 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Oct 2022 18:49:56 +0000 Subject: [PATCH 01/27] Bump geekyeggo/delete-artifact from 1 to 2 Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 1 to 2. - [Release notes](https://github.com/geekyeggo/delete-artifact/releases) - [Commits](https://github.com/geekyeggo/delete-artifact/compare/v1...v2) --- updated-dependencies: - dependency-name: geekyeggo/delete-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 986bda6f..10abaeac 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -114,7 +114,7 @@ jobs: path: ${{ env.CONFIGURATIONS_FOLDER }} - name: Remove unneeded artifact - uses: geekyeggo/delete-artifact@v1 + uses: geekyeggo/delete-artifact@v2 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} From c6d8f98eb9af5bdd41ea6850a5460129fbe7b14a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Oct 2022 18:53:43 +0000 Subject: [PATCH 02/27] Bump carlosperate/download-file-action from 1 to 2 Bumps [carlosperate/download-file-action](https://github.com/carlosperate/download-file-action) from 1 to 2. - [Release notes](https://github.com/carlosperate/download-file-action/releases) - [Commits](https://github.com/carlosperate/download-file-action/compare/v1...v2) --- updated-dependencies: - dependency-name: carlosperate/download-file-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 10abaeac..94938f35 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -31,7 +31,7 @@ jobs: - name: Download JSON schema for labels configuration file id: download-schema - uses: carlosperate/download-file-action@v1 + uses: carlosperate/download-file-action@v2 with: file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json location: ${{ runner.temp }}/label-configuration-schema @@ -65,7 +65,7 @@ jobs: steps: - name: Download - uses: carlosperate/download-file-action@v1 + uses: carlosperate/download-file-action@v2 with: file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }} From 5a1bd3feea34447851ec23c506fa79a4a1fde148 Mon Sep 17 00:00:00 2001 From: THE-Spellchecker Date: Mon, 26 Dec 2022 23:14:13 -0600 Subject: [PATCH 03/27] Corrected Comment in AnalogInput.ino --- examples/03.Analog/AnalogInput/AnalogInput.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/03.Analog/AnalogInput/AnalogInput.ino b/examples/03.Analog/AnalogInput/AnalogInput.ino index 735a8b53..923079c1 100644 --- a/examples/03.Analog/AnalogInput/AnalogInput.ino +++ b/examples/03.Analog/AnalogInput/AnalogInput.ino @@ -45,6 +45,6 @@ void loop() { delay(sensorValue); // turn the ledPin off: digitalWrite(ledPin, LOW); - // stop the program for for milliseconds: + // stop the program for milliseconds: delay(sensorValue); } From 74be767c762ed3bcd44a3c39729fee4b34173d81 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:36:25 +0000 Subject: [PATCH 04/27] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/code-formatting-check.yml | 2 +- .github/workflows/compile-examples.yml | 2 +- .github/workflows/spell-check.yml | 2 +- .github/workflows/sync-labels.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-formatting-check.yml b/.github/workflows/code-formatting-check.yml index 5406daef..bb3479f3 100644 --- a/.github/workflows/code-formatting-check.yml +++ b/.github/workflows/code-formatting-check.yml @@ -29,7 +29,7 @@ jobs: echo "CLANG_FORMAT_INSTALL_PATH=${{ runner.temp }}/clang-format" >> "$GITHUB_ENV" - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download ClangFormat id: download diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 646db490..d91dde1e 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -212,7 +212,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Compile examples uses: arduino/compile-sketches@v1 diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 6a382c50..a3af916b 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md - name: Spell check diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 94938f35..9cde1acc 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download JSON schema for labels configuration file id: download-schema @@ -105,7 +105,7 @@ jobs: echo "::set-output name=flag::--dry-run" - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download configuration files artifact uses: actions/download-artifact@v3 From fdbc6ba8f1041f727428f4c614a6c603b3491d5e Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 30 Dec 2023 05:10:14 -0800 Subject: [PATCH 05/27] Add new boards to sketch compilation workflow The repository infrastructure includes a GitHub Actions workflow that compiles the examples for significant official Arduino boards. This provides a automated "smoke test" to easily get some basic validation of the sketches. Since the time the workflow was created, several new official boards have been released. Some of these boards are significantly different from the boards the workflow was compiling the examples for, which meant the workflow was not providing adequate coverage for the new boards. The workflow is hereby configured to also compile the examples for the significant new boards. --- .github/workflows/compile-examples.yml | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index d91dde1e..b184f9da 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -120,18 +120,48 @@ jobs: starter-kit: false tone: true a5: true + - fqbn: arduino:esp32:nano_nora + usb: false + serial1: true + starter-kit: false + tone: true + a5: true - fqbn: arduino:megaavr:uno2018:mode=off usb: false serial1: true starter-kit: false tone: true a5: true + - fqbn: arduino:renesas_uno:minima + usb: true + serial1: true + starter-kit: false + tone: true + a5: true + - fqbn: arduino:renesas_uno:unor4wifi + usb: true + serial1: true + starter-kit: false + tone: true + a5: true + - fqbn: arduino:renesas_portenta:portenta_c33 + usb: true + serial1: true + starter-kit: false + tone: true + a5: true - fqbn: arduino:samd:mkrzero usb: true serial1: true starter-kit: false tone: true a5: true + - fqbn: arduino:mbed_giga:giga + usb: false + serial1: true + starter-kit: false + tone: true + a5: true - fqbn: arduino:mbed_nano:nano33ble usb: false serial1: true From 9806d587c0b5f2b1b286468f0540f60524573373 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 30 Dec 2023 05:14:58 -0800 Subject: [PATCH 06/27] Use distinctive names for SPI pin macros to avoid collisions The "ArduinoISP" example allows the user to define arbitrary pins for use as the signal pins on the programmer board. This is done via a set of macros. Previously, very generic names were used for these macros. This resulted in a name collision. The core for the Renesas boards also defines macros of the same name. Despite what the names might lead us to believe, the values of these macros in the core do not match the Arduino pin numbers of the SPI bus. The result was that, with the default configuration of the sketch where the USE_OLD_STYLE_WIRING macro is not defined, the sketch uses the values of the macros defined by the core as the SPI signal pins instead of the standard SPI signal pins as the user would expect when the sketch is running on an UNO R4 Minima, UNO R4 WiFi, or Portenta C33 board. This causes operations using the programmer to fail with an error like: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03 [...] The name collision is avoided by adding a "namespace" prefix to the macro names. --- .../11.ArduinoISP/ArduinoISP/ArduinoISP.ino | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index c75d2332..bbbcdc91 100644 --- a/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -22,8 +22,8 @@ // using an Uno. (On an Uno this is not needed). // // 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. +// software ('BitBanged') SPI and having appropriate defines for ARDUINOISP_PIN_MOSI, +// ARDUINOISP_PIN_MISO and ARDUINOISP_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. @@ -82,9 +82,9 @@ #ifdef USE_OLD_STYLE_WIRING -#define PIN_MOSI 11 -#define PIN_MISO 12 -#define PIN_SCK 13 +#define ARDUINOISP_PIN_MOSI 11 +#define ARDUINOISP_PIN_MISO 12 +#define ARDUINOISP_PIN_SCK 13 #endif @@ -100,20 +100,20 @@ #endif // By default, use hardware SPI pins: -#ifndef PIN_MOSI -#define PIN_MOSI MOSI +#ifndef ARDUINOISP_PIN_MOSI +#define ARDUINOISP_PIN_MOSI MOSI #endif -#ifndef PIN_MISO -#define PIN_MISO MISO +#ifndef ARDUINOISP_PIN_MISO +#define ARDUINOISP_PIN_MISO MISO #endif -#ifndef PIN_SCK -#define PIN_SCK SCK +#ifndef ARDUINOISP_PIN_SCK +#define ARDUINOISP_PIN_SCK SCK #endif // Force bitbanged SPI if not using the hardware SPI pins: -#if (PIN_MISO != MISO) || (PIN_MOSI != MOSI) || (PIN_SCK != SCK) +#if (ARDUINOISP_PIN_MISO != MISO) || (ARDUINOISP_PIN_MOSI != MOSI) || (ARDUINOISP_PIN_SCK != SCK) #undef USE_HARDWARE_SPI #endif @@ -186,11 +186,11 @@ private: 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); + digitalWrite(ARDUINOISP_PIN_SCK, LOW); + digitalWrite(ARDUINOISP_PIN_MOSI, LOW); + pinMode(ARDUINOISP_PIN_SCK, OUTPUT); + pinMode(ARDUINOISP_PIN_MOSI, OUTPUT); + pinMode(ARDUINOISP_PIN_MISO, INPUT); } void beginTransaction(SPISettings settings) { @@ -204,11 +204,11 @@ public: 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); + digitalWrite(ARDUINOISP_PIN_MOSI, (b & 0x80) ? HIGH : LOW); + digitalWrite(ARDUINOISP_PIN_SCK, HIGH); delayMicroseconds(pulseWidth); - b = (b << 1) | digitalRead(PIN_MISO); - digitalWrite(PIN_SCK, LOW); // slow pulse + b = (b << 1) | digitalRead(ARDUINOISP_PIN_MISO); + digitalWrite(ARDUINOISP_PIN_SCK, LOW); // slow pulse delayMicroseconds(pulseWidth); } return b; @@ -408,7 +408,7 @@ void set_parameters() { void start_pmode() { - // Reset target before driving PIN_SCK or PIN_MOSI + // Reset target before driving ARDUINOISP_PIN_SCK or ARDUINOISP_PIN_MOSI // SPI.begin() will configure SS as output, so SPI master mode is selected. // We have defined RESET as pin 10, which for many Arduinos is not the SS pin. @@ -421,9 +421,9 @@ void start_pmode() { // See AVR datasheets, chapter "SERIAL_PRG Programming Algorithm": - // Pulse RESET after PIN_SCK is low: - digitalWrite(PIN_SCK, LOW); - delay(20); // discharge PIN_SCK, value arbitrarily chosen + // Pulse RESET after ARDUINOISP_PIN_SCK is low: + digitalWrite(ARDUINOISP_PIN_SCK, LOW); + delay(20); // discharge ARDUINOISP_PIN_SCK, value arbitrarily chosen reset_target(false); // Pulse must be minimum 2 target CPU clock cycles so 100 usec is ok for CPU // speeds above 20 KHz @@ -439,8 +439,8 @@ void start_pmode() { void end_pmode() { SPI.end(); // We're about to take the target out of reset so configure SPI pins as input - pinMode(PIN_MOSI, INPUT); - pinMode(PIN_SCK, INPUT); + pinMode(ARDUINOISP_PIN_MOSI, INPUT); + pinMode(ARDUINOISP_PIN_SCK, INPUT); reset_target(false); pinMode(RESET, INPUT); pmode = 0; From e340bb6305811ebe5b7c3120df52357eaded09ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:43:34 +0100 Subject: [PATCH 07/27] basics category --- examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino | 2 +- examples/01.Basics/Blink/Blink.ino | 2 +- examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino | 2 +- examples/01.Basics/Fade/Fade.ino | 2 +- examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino b/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino index d1dd3210..b2da80c7 100644 --- a/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino +++ b/examples/01.Basics/AnalogReadSerial/AnalogReadSerial.ino @@ -7,7 +7,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogReadSerial + https://docs.arduino.cc/built-in-examples/basics/AnalogReadSerial/ */ // the setup routine runs once when you press reset: diff --git a/examples/01.Basics/Blink/Blink.ino b/examples/01.Basics/Blink/Blink.ino index 9f8b4724..89f71daa 100644 --- a/examples/01.Basics/Blink/Blink.ino +++ b/examples/01.Basics/Blink/Blink.ino @@ -19,7 +19,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink + https://docs.arduino.cc/built-in-examples/basics/Blink/ */ // the setup function runs once when you press reset or power the board diff --git a/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino b/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino index 3456f2f5..170e083e 100644 --- a/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino +++ b/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino @@ -5,7 +5,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/DigitalReadSerial + https://docs.arduino.cc/built-in-examples/basics/DigitalReadSerial/ */ // digital pin 2 has a pushbutton attached to it. Give it a name: diff --git a/examples/01.Basics/Fade/Fade.ino b/examples/01.Basics/Fade/Fade.ino index 4637979b..516d526a 100644 --- a/examples/01.Basics/Fade/Fade.ino +++ b/examples/01.Basics/Fade/Fade.ino @@ -10,7 +10,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Fade + https://docs.arduino.cc/built-in-examples/basics/Fade/ */ int led = 9; // the PWM pin the LED is attached to diff --git a/examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino b/examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino index 26e91e52..8e134689 100644 --- a/examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino +++ b/examples/01.Basics/ReadAnalogVoltage/ReadAnalogVoltage.ino @@ -7,7 +7,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ReadAnalogVoltage + https://docs.arduino.cc/built-in-examples/basics/ReadAnalogVoltage/ */ // the setup routine runs once when you press reset: From 1447c5b5706415aedcda0b6d0c13f26cfde7c220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:46:25 +0100 Subject: [PATCH 08/27] digital --- examples/01.Basics/Blink/Blink.ino | 2 +- examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino | 4 ++-- examples/02.Digital/Button/Button.ino | 2 +- examples/02.Digital/Debounce/Debounce.ino | 2 +- examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino | 2 +- .../02.Digital/StateChangeDetection/StateChangeDetection.ino | 2 +- examples/02.Digital/toneKeyboard/toneKeyboard.ino | 2 +- examples/02.Digital/toneMelody/toneMelody.ino | 2 +- examples/02.Digital/toneMultiple/toneMultiple.ino | 2 +- examples/02.Digital/tonePitchFollower/tonePitchFollower.ino | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/01.Basics/Blink/Blink.ino b/examples/01.Basics/Blink/Blink.ino index 89f71daa..eb03a1eb 100644 --- a/examples/01.Basics/Blink/Blink.ino +++ b/examples/01.Basics/Blink/Blink.ino @@ -8,7 +8,7 @@ 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 + https://docs.arduino.cc/hardware/ modified 8 May 2014 by Scott Fitzgerald diff --git a/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino b/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino index d266349a..63bebe20 100644 --- a/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino +++ b/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino @@ -12,7 +12,7 @@ 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 + https://docs.arduino.cc/hardware/ created 2005 by David A. Mellis @@ -25,7 +25,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/BlinkWithoutDelay + https://docs.arduino.cc/built-in-examples/digital/BlinkWithoutDelay/ */ // constants won't change. Used here to set a pin number: diff --git a/examples/02.Digital/Button/Button.ino b/examples/02.Digital/Button/Button.ino index e041c314..947f83fa 100644 --- a/examples/02.Digital/Button/Button.ino +++ b/examples/02.Digital/Button/Button.ino @@ -19,7 +19,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Button + https://docs.arduino.cc/built-in-examples/digital/Button/ */ // constants won't change. They're used here to set pin numbers: diff --git a/examples/02.Digital/Debounce/Debounce.ino b/examples/02.Digital/Debounce/Debounce.ino index 6460d903..b091de4d 100644 --- a/examples/02.Digital/Debounce/Debounce.ino +++ b/examples/02.Digital/Debounce/Debounce.ino @@ -24,7 +24,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Debounce + https://docs.arduino.cc/built-in-examples/digital/Debounce/ */ // constants won't change. They're used here to set pin numbers: diff --git a/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino b/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino index 0f0eea15..b81798d8 100644 --- a/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino +++ b/examples/02.Digital/DigitalInputPullup/DigitalInputPullup.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/InputPullupSerial + https://docs.arduino.cc/built-in-examples/digital/InputPullupSerial/ */ void setup() { diff --git a/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino b/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino index 5205e17c..37c23dd3 100644 --- a/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino +++ b/examples/02.Digital/StateChangeDetection/StateChangeDetection.ino @@ -21,7 +21,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StateChangeDetection + https://docs.arduino.cc/built-in-examples/digital/StateChangeDetection/ */ // this constant won't change: diff --git a/examples/02.Digital/toneKeyboard/toneKeyboard.ino b/examples/02.Digital/toneKeyboard/toneKeyboard.ino index c8e73c64..1f1bf261 100644 --- a/examples/02.Digital/toneKeyboard/toneKeyboard.ino +++ b/examples/02.Digital/toneKeyboard/toneKeyboard.ino @@ -14,7 +14,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneKeyboard + https://docs.arduino.cc/built-in-examples/digital/toneKeyboard/ */ #include "pitches.h" diff --git a/examples/02.Digital/toneMelody/toneMelody.ino b/examples/02.Digital/toneMelody/toneMelody.ino index 22022dce..2e4614e8 100644 --- a/examples/02.Digital/toneMelody/toneMelody.ino +++ b/examples/02.Digital/toneMelody/toneMelody.ino @@ -12,7 +12,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMelody + https://docs.arduino.cc/built-in-examples/digital/toneMelody/ */ #include "pitches.h" diff --git a/examples/02.Digital/toneMultiple/toneMultiple.ino b/examples/02.Digital/toneMultiple/toneMultiple.ino index 8d97fa7f..81e50d9c 100644 --- a/examples/02.Digital/toneMultiple/toneMultiple.ino +++ b/examples/02.Digital/toneMultiple/toneMultiple.ino @@ -12,7 +12,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/toneMultiple + https://docs.arduino.cc/built-in-examples/digital/toneMultiple/ */ void setup() { diff --git a/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino b/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino index 592f671c..260a1726 100644 --- a/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino +++ b/examples/02.Digital/tonePitchFollower/tonePitchFollower.ino @@ -14,7 +14,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/tonePitchFollower + https://docs.arduino.cc/built-in-examples/digital/tonePitchFollower/ */ void setup() { From a4cb293b724e61830fc3bd867a77d14565d0f1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:49:37 +0100 Subject: [PATCH 09/27] analog --- examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino | 2 +- examples/03.Analog/AnalogInput/AnalogInput.ino | 2 +- examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino | 2 +- examples/03.Analog/Calibration/Calibration.ino | 2 +- examples/03.Analog/Fading/Fading.ino | 2 +- examples/03.Analog/Smoothing/Smoothing.ino | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino b/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino index 851342df..88aa312e 100644 --- a/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino +++ b/examples/03.Analog/AnalogInOutSerial/AnalogInOutSerial.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogInOutSerial + https://docs.arduino.cc/built-in-examples/analog/AnalogInOutSerial/ */ // These constants won't change. They're used to give names to the pins used: diff --git a/examples/03.Analog/AnalogInput/AnalogInput.ino b/examples/03.Analog/AnalogInput/AnalogInput.ino index 923079c1..e5e448cc 100644 --- a/examples/03.Analog/AnalogInput/AnalogInput.ino +++ b/examples/03.Analog/AnalogInput/AnalogInput.ino @@ -24,7 +24,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogInput + https://docs.arduino.cc/built-in-examples/analog/AnalogInput/ */ int sensorPin = A0; // select the input pin for the potentiometer diff --git a/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino b/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino index 9d938d27..da14f134 100644 --- a/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino +++ b/examples/03.Analog/AnalogWriteMega/AnalogWriteMega.ino @@ -12,7 +12,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/AnalogWriteMega + https://docs.arduino.cc/built-in-examples/analog/AnalogWriteMega/ */ // These constants won't change. They're used to give names to the pins used: diff --git a/examples/03.Analog/Calibration/Calibration.ino b/examples/03.Analog/Calibration/Calibration.ino index e0f639bb..17cc790f 100644 --- a/examples/03.Analog/Calibration/Calibration.ino +++ b/examples/03.Analog/Calibration/Calibration.ino @@ -23,7 +23,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Calibration + https://docs.arduino.cc/built-in-examples/analog/Calibration/ */ // These constants won't change: diff --git a/examples/03.Analog/Fading/Fading.ino b/examples/03.Analog/Fading/Fading.ino index 7923546b..b7f42f1a 100644 --- a/examples/03.Analog/Fading/Fading.ino +++ b/examples/03.Analog/Fading/Fading.ino @@ -13,7 +13,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Fading + https://docs.arduino.cc/built-in-examples/analog/Fading/ */ int ledPin = 9; // LED connected to digital pin 9 diff --git a/examples/03.Analog/Smoothing/Smoothing.ino b/examples/03.Analog/Smoothing/Smoothing.ino index 15c0f1a8..2b26d560 100644 --- a/examples/03.Analog/Smoothing/Smoothing.ino +++ b/examples/03.Analog/Smoothing/Smoothing.ino @@ -15,7 +15,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Smoothing + https://docs.arduino.cc/built-in-examples/analog/Smoothing/ */ // Define the number of samples to keep track of. The higher the number, the From 13bb330c4432ea0bcde160b65e0fd74803f34f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:51:13 +0100 Subject: [PATCH 10/27] communication --- examples/04.Communication/ASCIITable/ASCIITable.ino | 2 +- examples/04.Communication/Dimmer/Dimmer.ino | 2 +- examples/04.Communication/Graph/Graph.ino | 2 +- examples/04.Communication/Midi/Midi.ino | 2 +- examples/04.Communication/MultiSerial/MultiSerial.ino | 2 +- examples/04.Communication/PhysicalPixel/PhysicalPixel.ino | 2 +- examples/04.Communication/ReadASCIIString/ReadASCIIString.ino | 2 +- .../04.Communication/SerialCallResponse/SerialCallResponse.ino | 2 +- .../SerialCallResponseASCII/SerialCallResponseASCII.ino | 2 +- examples/04.Communication/SerialEvent/SerialEvent.ino | 2 +- .../04.Communication/SerialPassthrough/SerialPassthrough.ino | 2 +- .../04.Communication/VirtualColorMixer/VirtualColorMixer.ino | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/04.Communication/ASCIITable/ASCIITable.ino b/examples/04.Communication/ASCIITable/ASCIITable.ino index f7fc4d48..5f7a2722 100644 --- a/examples/04.Communication/ASCIITable/ASCIITable.ino +++ b/examples/04.Communication/ASCIITable/ASCIITable.ino @@ -16,7 +16,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ASCIITable + https://docs.arduino.cc/built-in-examples/communication/ASCIITable */ void setup() { diff --git a/examples/04.Communication/Dimmer/Dimmer.ino b/examples/04.Communication/Dimmer/Dimmer.ino index 2f82344c..05c93a31 100644 --- a/examples/04.Communication/Dimmer/Dimmer.ino +++ b/examples/04.Communication/Dimmer/Dimmer.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Dimmer + https://docs.arduino.cc/built-in-examples/communication/Dimmer */ const int ledPin = 9; // the pin that the LED is attached to diff --git a/examples/04.Communication/Graph/Graph.ino b/examples/04.Communication/Graph/Graph.ino index b50ca372..7caa0c32 100644 --- a/examples/04.Communication/Graph/Graph.ino +++ b/examples/04.Communication/Graph/Graph.ino @@ -22,7 +22,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Graph + https://docs.arduino.cc/built-in-examples/communication/Graph */ void setup() { diff --git a/examples/04.Communication/Midi/Midi.ino b/examples/04.Communication/Midi/Midi.ino index 0602bf0a..16f7d950 100644 --- a/examples/04.Communication/Midi/Midi.ino +++ b/examples/04.Communication/Midi/Midi.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Midi + https://docs.arduino.cc/built-in-examples/communication/Midi */ void setup() { diff --git a/examples/04.Communication/MultiSerial/MultiSerial.ino b/examples/04.Communication/MultiSerial/MultiSerial.ino index 20fc4417..8e33576f 100644 --- a/examples/04.Communication/MultiSerial/MultiSerial.ino +++ b/examples/04.Communication/MultiSerial/MultiSerial.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/MultiSerialMega + https://docs.arduino.cc/built-in-examples/communication/MultiSerialMega */ diff --git a/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino b/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino index cff02ef1..3dd314d5 100644 --- a/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino +++ b/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/PhysicalPixel + https://docs.arduino.cc/built-in-examples/communication/PhysicalPixel */ const int ledPin = 13; // the pin that the LED is attached to diff --git a/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino b/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino index 1cab997c..3bfa619e 100644 --- a/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino +++ b/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ReadASCIIString + https://docs.arduino.cc/built-in-examples/communication/ReadASCIIString */ // pins for the LEDs: diff --git a/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino b/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino index b7787740..d2274ff6 100644 --- a/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino +++ b/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialCallResponse + https://docs.arduino.cc/built-in-examples/communication/SerialCallResponse */ int firstSensor = 0; // first analog sensor diff --git a/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino b/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino index e5b02cd3..881465d6 100644 --- a/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino +++ b/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino @@ -19,7 +19,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialCallResponseASCII + https://docs.arduino.cc/built-in-examples/communication/SerialCallResponseASCII */ int firstSensor = 0; // first analog sensor diff --git a/examples/04.Communication/SerialEvent/SerialEvent.ino b/examples/04.Communication/SerialEvent/SerialEvent.ino index 13c5630a..655e5646 100644 --- a/examples/04.Communication/SerialEvent/SerialEvent.ino +++ b/examples/04.Communication/SerialEvent/SerialEvent.ino @@ -15,7 +15,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialEvent + https://docs.arduino.cc/built-in-examples/communication/SerialEvent */ String inputString = ""; // a String to hold incoming data diff --git a/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino b/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino index 8f46bbe7..f8c15b41 100644 --- a/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino +++ b/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino @@ -21,7 +21,7 @@ created 23 May 2016 by Erik Nyquist - https://www.arduino.cc/en/Tutorial/BuiltInExamples/SerialPassthrough + https://docs.arduino.cc/built-in-examples/communication/SerialPassthrough */ void setup() { diff --git a/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino b/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino index 6ffd934a..cb24719f 100644 --- a/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino +++ b/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino @@ -13,7 +13,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/VirtualColorMixer + https://docs.arduino.cc/built-in-examples/communication/VirtualColorMixer */ const int redPin = A0; // sensor to control red color From 19902680d0bf275ce3eefde1d3835827b2e71bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:53:29 +0100 Subject: [PATCH 11/27] control struct + sensors --- .DS_Store | Bin 0 -> 6148 bytes examples/05.Control/Arrays/Arrays.ino | 2 +- .../ForLoopIteration/ForLoopIteration.ino | 2 +- .../IfStatementConditional.ino | 2 +- .../WhileStatementConditional.ino | 2 +- examples/05.Control/switchCase/switchCase.ino | 2 +- examples/05.Control/switchCase2/switchCase2.ino | 2 +- examples/06.Sensors/ADXL3xx/ADXL3xx.ino | 2 +- examples/06.Sensors/Knock/Knock.ino | 2 +- examples/06.Sensors/Memsic2125/Memsic2125.ino | 2 +- examples/06.Sensors/Ping/Ping.ino | 2 +- 11 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..94e8e06d0b3c0eea52a799b60b44125cd5fb1383 GIT binary patch literal 6148 zcmeHKJ8Hu~5S?*U2;8_#xmWNF7NeX%7qG!0jV*_Sgp{gst{ly8K7<&_jUkPB12b=T zcHRoTLZcB8-F)oVA}bMT;fC^UVQO}6KCwk+6bQ#1uX2!QdH?L+hDr5&!niFsU$T?q zU;g1Vyu`ipL}sY~6`%rCfC^B7n-s9#3u~8wj8uRMP=Q|s?E6sQhBa{v^iKzZj{v|1 zX*aBWmH-w@0BhnHhzv}F3Jj{|h@nA8zGPiZ90P+cn!|_YlQkz4^{3kdX>d zflCD*V!N{b{{+7>|6h{0qXJamt`yLw>$?qJDSPYW<*e5h_!e$8KX5awor2))80hU7 g8*9gpUKDl3);O<;W1!QKcRG+i1Evd&3jDVMXN%qytN;K2 literal 0 HcmV?d00001 diff --git a/examples/05.Control/Arrays/Arrays.ino b/examples/05.Control/Arrays/Arrays.ino index 75d59eee..590f04dc 100644 --- a/examples/05.Control/Arrays/Arrays.ino +++ b/examples/05.Control/Arrays/Arrays.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Arrays + https://docs.arduino.cc/built-in-examples/control-structures/Arrays */ int timer = 100; // The higher the number, the slower the timing. diff --git a/examples/05.Control/ForLoopIteration/ForLoopIteration.ino b/examples/05.Control/ForLoopIteration/ForLoopIteration.ino index e6b40e7d..cc255223 100644 --- a/examples/05.Control/ForLoopIteration/ForLoopIteration.ino +++ b/examples/05.Control/ForLoopIteration/ForLoopIteration.ino @@ -14,7 +14,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ForLoopIteration + https://docs.arduino.cc/built-in-examples/control-structures/ForLoopIteration */ int timer = 100; // The higher the number, the slower the timing. diff --git a/examples/05.Control/IfStatementConditional/IfStatementConditional.ino b/examples/05.Control/IfStatementConditional/IfStatementConditional.ino index ac6041a2..3911f6af 100644 --- a/examples/05.Control/IfStatementConditional/IfStatementConditional.ino +++ b/examples/05.Control/IfStatementConditional/IfStatementConditional.ino @@ -21,7 +21,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ifStatementConditional + https://docs.arduino.cc/built-in-examples/control-structures/ifStatementConditional */ // These constants won't change: diff --git a/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino b/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino index 0a36341d..99e34c51 100644 --- a/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino +++ b/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino @@ -24,7 +24,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/WhileStatementConditional + https://docs.arduino.cc/built-in-examples/control-structures/WhileStatementConditional */ diff --git a/examples/05.Control/switchCase/switchCase.ino b/examples/05.Control/switchCase/switchCase.ino index f964b611..cf076669 100644 --- a/examples/05.Control/switchCase/switchCase.ino +++ b/examples/05.Control/switchCase/switchCase.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/SwitchCase + https://docs.arduino.cc/built-in-examples/control-structures/SwitchCase */ // these constants won't change. They are the lowest and highest readings you diff --git a/examples/05.Control/switchCase2/switchCase2.ino b/examples/05.Control/switchCase2/switchCase2.ino index 48cbaa48..ab6c76c5 100644 --- a/examples/05.Control/switchCase2/switchCase2.ino +++ b/examples/05.Control/switchCase2/switchCase2.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/SwitchCase2 + https://docs.arduino.cc/built-in-examples/control-structures/SwitchCase2 */ void setup() { diff --git a/examples/06.Sensors/ADXL3xx/ADXL3xx.ino b/examples/06.Sensors/ADXL3xx/ADXL3xx.ino index b9dbf646..dec9dc41 100644 --- a/examples/06.Sensors/ADXL3xx/ADXL3xx.ino +++ b/examples/06.Sensors/ADXL3xx/ADXL3xx.ino @@ -21,7 +21,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ADXL3xx + https://docs.arduino.cc/built-in-examples/sensors/ADXL3xx */ // these constants describe the pins. They won't change: diff --git a/examples/06.Sensors/Knock/Knock.ino b/examples/06.Sensors/Knock/Knock.ino index 0e21486d..1259192e 100644 --- a/examples/06.Sensors/Knock/Knock.ino +++ b/examples/06.Sensors/Knock/Knock.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Knock + https://docs.arduino.cc/built-in-examples/sensors/Knock */ diff --git a/examples/06.Sensors/Memsic2125/Memsic2125.ino b/examples/06.Sensors/Memsic2125/Memsic2125.ino index 006306b7..75eb8984 100644 --- a/examples/06.Sensors/Memsic2125/Memsic2125.ino +++ b/examples/06.Sensors/Memsic2125/Memsic2125.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Memsic2125 + https://docs.arduino.cc/built-in-examples/sensors/Memsic2125 */ // these constants won't change: diff --git a/examples/06.Sensors/Ping/Ping.ino b/examples/06.Sensors/Ping/Ping.ino index 2d9a0da3..e6439b34 100644 --- a/examples/06.Sensors/Ping/Ping.ino +++ b/examples/06.Sensors/Ping/Ping.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/Ping + https://docs.arduino.cc/built-in-examples/sensors/Ping */ // this constant won't change. It's the pin number of the sensor's output: From 6107c3d933e3c9da603a3fc1ffa7f89f285348df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:54:36 +0100 Subject: [PATCH 12/27] display + string --- examples/07.Display/RowColumnScanning/RowColumnScanning.ino | 2 +- examples/07.Display/barGraph/barGraph.ino | 2 +- examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino | 2 +- .../StringAdditionOperator/StringAdditionOperator.ino | 2 +- .../08.Strings/StringAppendOperator/StringAppendOperator.ino | 2 +- examples/08.Strings/StringCaseChanges/StringCaseChanges.ino | 2 +- examples/08.Strings/StringCharacters/StringCharacters.ino | 2 +- .../StringComparisonOperators/StringComparisonOperators.ino | 2 +- examples/08.Strings/StringConstructors/StringConstructors.ino | 2 +- examples/08.Strings/StringIndexOf/StringIndexOf.ino | 2 +- examples/08.Strings/StringLength/StringLength.ino | 2 +- examples/08.Strings/StringLengthTrim/StringLengthTrim.ino | 2 +- examples/08.Strings/StringReplace/StringReplace.ino | 2 +- .../StringStartsWithEndsWith/StringStartsWithEndsWith.ino | 2 +- examples/08.Strings/StringSubstring/StringSubstring.ino | 2 +- examples/08.Strings/StringToInt/StringToInt.ino | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/07.Display/RowColumnScanning/RowColumnScanning.ino b/examples/07.Display/RowColumnScanning/RowColumnScanning.ino index 0fb04c57..4944fd83 100644 --- a/examples/07.Display/RowColumnScanning/RowColumnScanning.ino +++ b/examples/07.Display/RowColumnScanning/RowColumnScanning.ino @@ -28,7 +28,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/RowColumnScanning + https://docs.arduino.cc/built-in-examples/display/RowColumnScanning */ // 2-dimensional array of row pin numbers: diff --git a/examples/07.Display/barGraph/barGraph.ino b/examples/07.Display/barGraph/barGraph.ino index b15f840c..9f539e33 100644 --- a/examples/07.Display/barGraph/barGraph.ino +++ b/examples/07.Display/barGraph/barGraph.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/BarGraph + https://docs.arduino.cc/built-in-examples/display/BarGraph */ // these constants won't change: diff --git a/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino b/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino index 40d68a5c..2fa9cb97 100644 --- a/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino +++ b/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino @@ -10,7 +10,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/CharacterAnalysis + https://docs.arduino.cc/built-in-examples/strings/CharacterAnalysis */ void setup() { diff --git a/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino b/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino index 4763acfd..3a219f0d 100644 --- a/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino +++ b/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino @@ -10,7 +10,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringAdditionOperator + https://docs.arduino.cc/built-in-examples/strings/StringAdditionOperator */ // declare three Strings: diff --git a/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino b/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino index 4846cf41..60f1e591 100644 --- a/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino +++ b/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringAppendOperator + https://docs.arduino.cc/built-in-examples/strings/StringAppendOperator */ String stringOne, stringTwo; diff --git a/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino b/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino index 52d4de8b..ae0744fb 100644 --- a/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino +++ b/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringCaseChanges + https://docs.arduino.cc/built-in-examples/strings/StringCaseChanges */ void setup() { diff --git a/examples/08.Strings/StringCharacters/StringCharacters.ino b/examples/08.Strings/StringCharacters/StringCharacters.ino index 6c64b57e..1079819b 100644 --- a/examples/08.Strings/StringCharacters/StringCharacters.ino +++ b/examples/08.Strings/StringCharacters/StringCharacters.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringCharacters + https://docs.arduino.cc/built-in-examples/strings/StringCharacters */ void setup() { diff --git a/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino b/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino index 4e574698..332cc8f1 100644 --- a/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino +++ b/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringComparisonOperators + https://docs.arduino.cc/built-in-examples/strings/StringComparisonOperators */ String stringOne, stringTwo; diff --git a/examples/08.Strings/StringConstructors/StringConstructors.ino b/examples/08.Strings/StringConstructors/StringConstructors.ino index 36ff78a3..504130c0 100644 --- a/examples/08.Strings/StringConstructors/StringConstructors.ino +++ b/examples/08.Strings/StringConstructors/StringConstructors.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringConstructors + https://docs.arduino.cc/built-in-examples/strings/StringConstructors */ void setup() { diff --git a/examples/08.Strings/StringIndexOf/StringIndexOf.ino b/examples/08.Strings/StringIndexOf/StringIndexOf.ino index cf1f8167..89d5f8d0 100644 --- a/examples/08.Strings/StringIndexOf/StringIndexOf.ino +++ b/examples/08.Strings/StringIndexOf/StringIndexOf.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringIndexOf + https://docs.arduino.cc/built-in-examples/strings/StringIndexOf */ void setup() { diff --git a/examples/08.Strings/StringLength/StringLength.ino b/examples/08.Strings/StringLength/StringLength.ino index c9378a7a..0f9e4215 100644 --- a/examples/08.Strings/StringLength/StringLength.ino +++ b/examples/08.Strings/StringLength/StringLength.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringLengthTrim + https://docs.arduino.cc/built-in-examples/strings/StringLengthTrim */ String txtMsg = ""; // a string for incoming text diff --git a/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino b/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino index bdef83ac..a1c2a7e1 100644 --- a/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino +++ b/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringLengthTrim + https://docs.arduino.cc/built-in-examples/strings/StringLengthTrim */ void setup() { diff --git a/examples/08.Strings/StringReplace/StringReplace.ino b/examples/08.Strings/StringReplace/StringReplace.ino index 6fa9ba13..49de7d27 100644 --- a/examples/08.Strings/StringReplace/StringReplace.ino +++ b/examples/08.Strings/StringReplace/StringReplace.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringReplace + https://docs.arduino.cc/built-in-examples/strings/StringReplace */ void setup() { diff --git a/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino b/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino index 9cdbe248..186ea3f0 100644 --- a/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino +++ b/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringStartsWithEndsWith + https://docs.arduino.cc/built-in-examples/strings/StringStartsWithEndsWith */ void setup() { diff --git a/examples/08.Strings/StringSubstring/StringSubstring.ino b/examples/08.Strings/StringSubstring/StringSubstring.ino index 871da294..dac9ae95 100644 --- a/examples/08.Strings/StringSubstring/StringSubstring.ino +++ b/examples/08.Strings/StringSubstring/StringSubstring.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringSubstring + https://docs.arduino.cc/built-in-examples/strings/StringSubstring */ void setup() { diff --git a/examples/08.Strings/StringToInt/StringToInt.ino b/examples/08.Strings/StringToInt/StringToInt.ino index dc10d023..96ab920f 100644 --- a/examples/08.Strings/StringToInt/StringToInt.ino +++ b/examples/08.Strings/StringToInt/StringToInt.ino @@ -12,7 +12,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/StringToInt + https://docs.arduino.cc/built-in-examples/strings/StringToInt */ String inString = ""; // string to hold input From 67204e023146e3fdd66d89b5722bf2e3780eb26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:55:59 +0100 Subject: [PATCH 13/27] usb --- examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino | 2 +- examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino | 2 +- .../09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino | 2 +- examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino | 2 +- .../09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino | 2 +- examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino | 2 +- .../09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino b/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino index c44c5099..6bab6383 100644 --- a/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino +++ b/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino @@ -22,7 +22,7 @@ This example is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/KeyboardLogout + https://docs.arduino.cc/built-in-examples/usb/KeyboardLogout */ #define OSX 0 diff --git a/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino b/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino index fbf4adb1..45df8653 100644 --- a/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino +++ b/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/KeyboardMessage + https://docs.arduino.cc/built-in-examples/usb/KeyboardMessage */ #include "Keyboard.h" diff --git a/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino b/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino index 94efe8c3..6e1a8724 100644 --- a/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino +++ b/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino @@ -22,7 +22,7 @@ This example is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/KeyboardReprogram + https://docs.arduino.cc/built-in-examples/usb/KeyboardReprogram */ #include "Keyboard.h" diff --git a/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino b/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino index 050bb18c..411adfbf 100644 --- a/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino +++ b/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino @@ -16,7 +16,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/KeyboardSerial + https://docs.arduino.cc/built-in-examples/usb/KeyboardSerial */ #include "Keyboard.h" diff --git a/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino b/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino index 3b1a280f..ea2c439a 100644 --- a/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino +++ b/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/KeyboardAndMouseControl + https://docs.arduino.cc/built-in-examples/usb/KeyboardAndMouseControl */ #include "Keyboard.h" diff --git a/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino b/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino index c27ef70f..7547c559 100644 --- a/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino +++ b/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino @@ -20,7 +20,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/ButtonMouseControl + https://docs.arduino.cc/built-in-examples/usb/ButtonMouseControl */ #include "Mouse.h" diff --git a/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino b/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino index 266ba61f..eba0bc16 100644 --- a/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino +++ b/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino @@ -26,7 +26,7 @@ This example code is in the public domain. - https://www.arduino.cc/en/Tutorial/BuiltInExamples/JoystickMouseControl + https://docs.arduino.cc/built-in-examples/usb/JoystickMouseControl */ #include "Mouse.h" From da8f67242c1233117787d4d6e95ad3d50685cbbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:47:38 +0100 Subject: [PATCH 14/27] Apply suggestions from code review Co-authored-by: per1234 --- examples/04.Communication/ASCIITable/ASCIITable.ino | 2 +- examples/04.Communication/Dimmer/Dimmer.ino | 2 +- examples/04.Communication/Graph/Graph.ino | 2 +- examples/04.Communication/Midi/Midi.ino | 2 +- examples/04.Communication/MultiSerial/MultiSerial.ino | 2 +- examples/04.Communication/PhysicalPixel/PhysicalPixel.ino | 2 +- examples/04.Communication/ReadASCIIString/ReadASCIIString.ino | 2 +- .../04.Communication/SerialCallResponse/SerialCallResponse.ino | 2 +- .../SerialCallResponseASCII/SerialCallResponseASCII.ino | 2 +- examples/04.Communication/SerialEvent/SerialEvent.ino | 2 +- .../04.Communication/SerialPassthrough/SerialPassthrough.ino | 2 +- .../04.Communication/VirtualColorMixer/VirtualColorMixer.ino | 2 +- examples/05.Control/Arrays/Arrays.ino | 2 +- examples/05.Control/ForLoopIteration/ForLoopIteration.ino | 2 +- .../IfStatementConditional/IfStatementConditional.ino | 2 +- .../WhileStatementConditional/WhileStatementConditional.ino | 2 +- examples/05.Control/switchCase/switchCase.ino | 2 +- examples/05.Control/switchCase2/switchCase2.ino | 2 +- examples/06.Sensors/ADXL3xx/ADXL3xx.ino | 2 +- examples/06.Sensors/Knock/Knock.ino | 2 +- examples/06.Sensors/Memsic2125/Memsic2125.ino | 2 +- examples/06.Sensors/Ping/Ping.ino | 2 +- examples/07.Display/RowColumnScanning/RowColumnScanning.ino | 2 +- examples/07.Display/barGraph/barGraph.ino | 2 +- examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino | 2 +- .../StringAdditionOperator/StringAdditionOperator.ino | 2 +- .../08.Strings/StringAppendOperator/StringAppendOperator.ino | 2 +- examples/08.Strings/StringCaseChanges/StringCaseChanges.ino | 2 +- examples/08.Strings/StringCharacters/StringCharacters.ino | 2 +- .../StringComparisonOperators/StringComparisonOperators.ino | 2 +- examples/08.Strings/StringConstructors/StringConstructors.ino | 2 +- examples/08.Strings/StringIndexOf/StringIndexOf.ino | 2 +- examples/08.Strings/StringLength/StringLength.ino | 2 +- examples/08.Strings/StringLengthTrim/StringLengthTrim.ino | 2 +- examples/08.Strings/StringReplace/StringReplace.ino | 2 +- .../StringStartsWithEndsWith/StringStartsWithEndsWith.ino | 2 +- examples/08.Strings/StringSubstring/StringSubstring.ino | 2 +- examples/08.Strings/StringToInt/StringToInt.ino | 2 +- examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino | 2 +- examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino | 2 +- .../09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino | 2 +- examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino | 2 +- .../09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino | 2 +- examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino | 2 +- .../09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/examples/04.Communication/ASCIITable/ASCIITable.ino b/examples/04.Communication/ASCIITable/ASCIITable.ino index 5f7a2722..2f6e2fac 100644 --- a/examples/04.Communication/ASCIITable/ASCIITable.ino +++ b/examples/04.Communication/ASCIITable/ASCIITable.ino @@ -16,7 +16,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/ASCIITable + https://docs.arduino.cc/built-in-examples/communication/ASCIITable/ */ void setup() { diff --git a/examples/04.Communication/Dimmer/Dimmer.ino b/examples/04.Communication/Dimmer/Dimmer.ino index 05c93a31..e6475c30 100644 --- a/examples/04.Communication/Dimmer/Dimmer.ino +++ b/examples/04.Communication/Dimmer/Dimmer.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/Dimmer + https://docs.arduino.cc/built-in-examples/communication/Dimmer/ */ const int ledPin = 9; // the pin that the LED is attached to diff --git a/examples/04.Communication/Graph/Graph.ino b/examples/04.Communication/Graph/Graph.ino index 7caa0c32..0fd33b2d 100644 --- a/examples/04.Communication/Graph/Graph.ino +++ b/examples/04.Communication/Graph/Graph.ino @@ -22,7 +22,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/Graph + https://docs.arduino.cc/built-in-examples/communication/Graph/ */ void setup() { diff --git a/examples/04.Communication/Midi/Midi.ino b/examples/04.Communication/Midi/Midi.ino index 16f7d950..901766df 100644 --- a/examples/04.Communication/Midi/Midi.ino +++ b/examples/04.Communication/Midi/Midi.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/Midi + https://docs.arduino.cc/built-in-examples/communication/Midi/ */ void setup() { diff --git a/examples/04.Communication/MultiSerial/MultiSerial.ino b/examples/04.Communication/MultiSerial/MultiSerial.ino index 8e33576f..30f7dd0f 100644 --- a/examples/04.Communication/MultiSerial/MultiSerial.ino +++ b/examples/04.Communication/MultiSerial/MultiSerial.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/MultiSerialMega + https://docs.arduino.cc/built-in-examples/communication/MultiSerialMega/ */ diff --git a/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino b/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino index 3dd314d5..ff8866e9 100644 --- a/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino +++ b/examples/04.Communication/PhysicalPixel/PhysicalPixel.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/PhysicalPixel + https://docs.arduino.cc/built-in-examples/communication/PhysicalPixel/ */ const int ledPin = 13; // the pin that the LED is attached to diff --git a/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino b/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino index 3bfa619e..4832d6bf 100644 --- a/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino +++ b/examples/04.Communication/ReadASCIIString/ReadASCIIString.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/ReadASCIIString + https://docs.arduino.cc/built-in-examples/communication/ReadASCIIString/ */ // pins for the LEDs: diff --git a/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino b/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino index d2274ff6..9983cd41 100644 --- a/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino +++ b/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/SerialCallResponse + https://docs.arduino.cc/built-in-examples/communication/SerialCallResponse/ */ int firstSensor = 0; // first analog sensor diff --git a/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino b/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino index 881465d6..ee044c6e 100644 --- a/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino +++ b/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino @@ -19,7 +19,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/SerialCallResponseASCII + https://docs.arduino.cc/built-in-examples/communication/SerialCallResponseASCII/ */ int firstSensor = 0; // first analog sensor diff --git a/examples/04.Communication/SerialEvent/SerialEvent.ino b/examples/04.Communication/SerialEvent/SerialEvent.ino index 655e5646..2401a637 100644 --- a/examples/04.Communication/SerialEvent/SerialEvent.ino +++ b/examples/04.Communication/SerialEvent/SerialEvent.ino @@ -15,7 +15,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/SerialEvent + https://docs.arduino.cc/built-in-examples/communication/SerialEvent/ */ String inputString = ""; // a String to hold incoming data diff --git a/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino b/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino index f8c15b41..96fc01ad 100644 --- a/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino +++ b/examples/04.Communication/SerialPassthrough/SerialPassthrough.ino @@ -21,7 +21,7 @@ created 23 May 2016 by Erik Nyquist - https://docs.arduino.cc/built-in-examples/communication/SerialPassthrough + https://docs.arduino.cc/built-in-examples/communication/SerialPassthrough/ */ void setup() { diff --git a/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino b/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino index cb24719f..54ad16b6 100644 --- a/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino +++ b/examples/04.Communication/VirtualColorMixer/VirtualColorMixer.ino @@ -13,7 +13,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/communication/VirtualColorMixer + https://docs.arduino.cc/built-in-examples/communication/VirtualColorMixer/ */ const int redPin = A0; // sensor to control red color diff --git a/examples/05.Control/Arrays/Arrays.ino b/examples/05.Control/Arrays/Arrays.ino index 590f04dc..cefc940c 100644 --- a/examples/05.Control/Arrays/Arrays.ino +++ b/examples/05.Control/Arrays/Arrays.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/control-structures/Arrays + https://docs.arduino.cc/built-in-examples/control-structures/Arrays/ */ int timer = 100; // The higher the number, the slower the timing. diff --git a/examples/05.Control/ForLoopIteration/ForLoopIteration.ino b/examples/05.Control/ForLoopIteration/ForLoopIteration.ino index cc255223..8e3f3cd2 100644 --- a/examples/05.Control/ForLoopIteration/ForLoopIteration.ino +++ b/examples/05.Control/ForLoopIteration/ForLoopIteration.ino @@ -14,7 +14,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/control-structures/ForLoopIteration + https://docs.arduino.cc/built-in-examples/control-structures/ForLoopIteration/ */ int timer = 100; // The higher the number, the slower the timing. diff --git a/examples/05.Control/IfStatementConditional/IfStatementConditional.ino b/examples/05.Control/IfStatementConditional/IfStatementConditional.ino index 3911f6af..d57caa7e 100644 --- a/examples/05.Control/IfStatementConditional/IfStatementConditional.ino +++ b/examples/05.Control/IfStatementConditional/IfStatementConditional.ino @@ -21,7 +21,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/control-structures/ifStatementConditional + https://docs.arduino.cc/built-in-examples/control-structures/ifStatementConditional/ */ // These constants won't change: diff --git a/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino b/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino index 99e34c51..d7955d03 100644 --- a/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino +++ b/examples/05.Control/WhileStatementConditional/WhileStatementConditional.ino @@ -24,7 +24,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/control-structures/WhileStatementConditional + https://docs.arduino.cc/built-in-examples/control-structures/WhileStatementConditional/ */ diff --git a/examples/05.Control/switchCase/switchCase.ino b/examples/05.Control/switchCase/switchCase.ino index cf076669..c2b736b3 100644 --- a/examples/05.Control/switchCase/switchCase.ino +++ b/examples/05.Control/switchCase/switchCase.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/control-structures/SwitchCase + https://docs.arduino.cc/built-in-examples/control-structures/SwitchCase/ */ // these constants won't change. They are the lowest and highest readings you diff --git a/examples/05.Control/switchCase2/switchCase2.ino b/examples/05.Control/switchCase2/switchCase2.ino index ab6c76c5..554f3aca 100644 --- a/examples/05.Control/switchCase2/switchCase2.ino +++ b/examples/05.Control/switchCase2/switchCase2.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/control-structures/SwitchCase2 + https://docs.arduino.cc/built-in-examples/control-structures/SwitchCase2/ */ void setup() { diff --git a/examples/06.Sensors/ADXL3xx/ADXL3xx.ino b/examples/06.Sensors/ADXL3xx/ADXL3xx.ino index dec9dc41..30282d0a 100644 --- a/examples/06.Sensors/ADXL3xx/ADXL3xx.ino +++ b/examples/06.Sensors/ADXL3xx/ADXL3xx.ino @@ -21,7 +21,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/sensors/ADXL3xx + https://docs.arduino.cc/built-in-examples/sensors/ADXL3xx/ */ // these constants describe the pins. They won't change: diff --git a/examples/06.Sensors/Knock/Knock.ino b/examples/06.Sensors/Knock/Knock.ino index 1259192e..fa174a1f 100644 --- a/examples/06.Sensors/Knock/Knock.ino +++ b/examples/06.Sensors/Knock/Knock.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/sensors/Knock + https://docs.arduino.cc/built-in-examples/sensors/Knock/ */ diff --git a/examples/06.Sensors/Memsic2125/Memsic2125.ino b/examples/06.Sensors/Memsic2125/Memsic2125.ino index 75eb8984..a6aea27d 100644 --- a/examples/06.Sensors/Memsic2125/Memsic2125.ino +++ b/examples/06.Sensors/Memsic2125/Memsic2125.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/sensors/Memsic2125 + https://docs.arduino.cc/built-in-examples/sensors/Memsic2125/ */ // these constants won't change: diff --git a/examples/06.Sensors/Ping/Ping.ino b/examples/06.Sensors/Ping/Ping.ino index e6439b34..a217ba27 100644 --- a/examples/06.Sensors/Ping/Ping.ino +++ b/examples/06.Sensors/Ping/Ping.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/sensors/Ping + https://docs.arduino.cc/built-in-examples/sensors/Ping/ */ // this constant won't change. It's the pin number of the sensor's output: diff --git a/examples/07.Display/RowColumnScanning/RowColumnScanning.ino b/examples/07.Display/RowColumnScanning/RowColumnScanning.ino index 4944fd83..54a12243 100644 --- a/examples/07.Display/RowColumnScanning/RowColumnScanning.ino +++ b/examples/07.Display/RowColumnScanning/RowColumnScanning.ino @@ -28,7 +28,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/display/RowColumnScanning + https://docs.arduino.cc/built-in-examples/display/RowColumnScanning/ */ // 2-dimensional array of row pin numbers: diff --git a/examples/07.Display/barGraph/barGraph.ino b/examples/07.Display/barGraph/barGraph.ino index 9f539e33..cd5a16c2 100644 --- a/examples/07.Display/barGraph/barGraph.ino +++ b/examples/07.Display/barGraph/barGraph.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/display/BarGraph + https://docs.arduino.cc/built-in-examples/display/BarGraph/ */ // these constants won't change: diff --git a/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino b/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino index 2fa9cb97..9f338e62 100644 --- a/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino +++ b/examples/08.Strings/CharacterAnalysis/CharacterAnalysis.ino @@ -10,7 +10,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/CharacterAnalysis + https://docs.arduino.cc/built-in-examples/strings/CharacterAnalysis/ */ void setup() { diff --git a/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino b/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino index 3a219f0d..d85aa441 100644 --- a/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino +++ b/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino @@ -10,7 +10,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringAdditionOperator + https://docs.arduino.cc/built-in-examples/strings/StringAdditionOperator/ */ // declare three Strings: diff --git a/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino b/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino index 60f1e591..d7bc9596 100644 --- a/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino +++ b/examples/08.Strings/StringAppendOperator/StringAppendOperator.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringAppendOperator + https://docs.arduino.cc/built-in-examples/strings/StringAppendOperator/ */ String stringOne, stringTwo; diff --git a/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino b/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino index ae0744fb..0d983f23 100644 --- a/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino +++ b/examples/08.Strings/StringCaseChanges/StringCaseChanges.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringCaseChanges + https://docs.arduino.cc/built-in-examples/strings/StringCaseChanges/ */ void setup() { diff --git a/examples/08.Strings/StringCharacters/StringCharacters.ino b/examples/08.Strings/StringCharacters/StringCharacters.ino index 1079819b..93f2a16e 100644 --- a/examples/08.Strings/StringCharacters/StringCharacters.ino +++ b/examples/08.Strings/StringCharacters/StringCharacters.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringCharacters + https://docs.arduino.cc/built-in-examples/strings/StringCharacters/ */ void setup() { diff --git a/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino b/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino index 332cc8f1..f8c9d80b 100644 --- a/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino +++ b/examples/08.Strings/StringComparisonOperators/StringComparisonOperators.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringComparisonOperators + https://docs.arduino.cc/built-in-examples/strings/StringComparisonOperators/ */ String stringOne, stringTwo; diff --git a/examples/08.Strings/StringConstructors/StringConstructors.ino b/examples/08.Strings/StringConstructors/StringConstructors.ino index 504130c0..146674a1 100644 --- a/examples/08.Strings/StringConstructors/StringConstructors.ino +++ b/examples/08.Strings/StringConstructors/StringConstructors.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringConstructors + https://docs.arduino.cc/built-in-examples/strings/StringConstructors/ */ void setup() { diff --git a/examples/08.Strings/StringIndexOf/StringIndexOf.ino b/examples/08.Strings/StringIndexOf/StringIndexOf.ino index 89d5f8d0..4741bdfd 100644 --- a/examples/08.Strings/StringIndexOf/StringIndexOf.ino +++ b/examples/08.Strings/StringIndexOf/StringIndexOf.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringIndexOf + https://docs.arduino.cc/built-in-examples/strings/StringIndexOf/ */ void setup() { diff --git a/examples/08.Strings/StringLength/StringLength.ino b/examples/08.Strings/StringLength/StringLength.ino index 0f9e4215..7732aa96 100644 --- a/examples/08.Strings/StringLength/StringLength.ino +++ b/examples/08.Strings/StringLength/StringLength.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringLengthTrim + https://docs.arduino.cc/built-in-examples/strings/StringLengthTrim/ */ String txtMsg = ""; // a string for incoming text diff --git a/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino b/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino index a1c2a7e1..dbdf6b64 100644 --- a/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino +++ b/examples/08.Strings/StringLengthTrim/StringLengthTrim.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringLengthTrim + https://docs.arduino.cc/built-in-examples/strings/StringLengthTrim/ */ void setup() { diff --git a/examples/08.Strings/StringReplace/StringReplace.ino b/examples/08.Strings/StringReplace/StringReplace.ino index 49de7d27..72bbb5ed 100644 --- a/examples/08.Strings/StringReplace/StringReplace.ino +++ b/examples/08.Strings/StringReplace/StringReplace.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringReplace + https://docs.arduino.cc/built-in-examples/strings/StringReplace/ */ void setup() { diff --git a/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino b/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino index 186ea3f0..ef31a68d 100644 --- a/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino +++ b/examples/08.Strings/StringStartsWithEndsWith/StringStartsWithEndsWith.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringStartsWithEndsWith + https://docs.arduino.cc/built-in-examples/strings/StringStartsWithEndsWith/ */ void setup() { diff --git a/examples/08.Strings/StringSubstring/StringSubstring.ino b/examples/08.Strings/StringSubstring/StringSubstring.ino index dac9ae95..00832121 100644 --- a/examples/08.Strings/StringSubstring/StringSubstring.ino +++ b/examples/08.Strings/StringSubstring/StringSubstring.ino @@ -9,7 +9,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringSubstring + https://docs.arduino.cc/built-in-examples/strings/StringSubstring/ */ void setup() { diff --git a/examples/08.Strings/StringToInt/StringToInt.ino b/examples/08.Strings/StringToInt/StringToInt.ino index 96ab920f..c59a851e 100644 --- a/examples/08.Strings/StringToInt/StringToInt.ino +++ b/examples/08.Strings/StringToInt/StringToInt.ino @@ -12,7 +12,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/strings/StringToInt + https://docs.arduino.cc/built-in-examples/strings/StringToInt/ */ String inString = ""; // string to hold input diff --git a/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino b/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino index 6bab6383..e5a25720 100644 --- a/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino +++ b/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino @@ -22,7 +22,7 @@ This example is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/KeyboardLogout + https://docs.arduino.cc/built-in-examples/usb/KeyboardLogout/ */ #define OSX 0 diff --git a/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino b/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino index 45df8653..02ca9226 100644 --- a/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino +++ b/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino @@ -17,7 +17,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/KeyboardMessage + https://docs.arduino.cc/built-in-examples/usb/KeyboardMessage/ */ #include "Keyboard.h" diff --git a/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino b/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino index 6e1a8724..f6ae5f32 100644 --- a/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino +++ b/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino @@ -22,7 +22,7 @@ This example is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/KeyboardReprogram + https://docs.arduino.cc/built-in-examples/usb/KeyboardReprogram/ */ #include "Keyboard.h" diff --git a/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino b/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino index 411adfbf..db5fb3dc 100644 --- a/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino +++ b/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino @@ -16,7 +16,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/KeyboardSerial + https://docs.arduino.cc/built-in-examples/usb/KeyboardSerial/ */ #include "Keyboard.h" diff --git a/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino b/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino index ea2c439a..ffe82ac8 100644 --- a/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino +++ b/examples/09.USB/KeyboardAndMouseControl/KeyboardAndMouseControl.ino @@ -18,7 +18,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/KeyboardAndMouseControl + https://docs.arduino.cc/built-in-examples/usb/KeyboardAndMouseControl/ */ #include "Keyboard.h" diff --git a/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino b/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino index 7547c559..6eb0e4de 100644 --- a/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino +++ b/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino @@ -20,7 +20,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/ButtonMouseControl + https://docs.arduino.cc/built-in-examples/usb/ButtonMouseControl/ */ #include "Mouse.h" diff --git a/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino b/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino index eba0bc16..13e170c1 100644 --- a/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino +++ b/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino @@ -26,7 +26,7 @@ This example code is in the public domain. - https://docs.arduino.cc/built-in-examples/usb/JoystickMouseControl + https://docs.arduino.cc/built-in-examples/usb/JoystickMouseControl/ */ #include "Mouse.h" From 61156f797b0585f4c8fcc04a7666adf829dee3ec Mon Sep 17 00:00:00 2001 From: fritzlb <106099434+fritzlb@users.noreply.github.com> Date: Mon, 11 Mar 2024 19:03:35 +0100 Subject: [PATCH 15/27] Add hint MISO/MOSI -> CIPO/COPI The Arduino documentation uses the new CIPO/COPI terminology while the whole arduino core still uses the old MISO/MOSI. While I thought about changing everything in the arduino cores, this would break many old sketches so I figuered adding a hint is the way to go. Also, only changing terminology in this sketch doesn't work for consistency reasons, eg. beginning in line 106. --- examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index bbbcdc91..c614c91f 100644 --- a/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -3,6 +3,9 @@ // If you require a license, see // https://opensource.org/licenses/bsd-license.php // +// Please note that this sketch still uses MISO/MOSI instead of CIPO/COPI. +// For further details, see https://docs.arduino.cc/learn/communication/spi +// // This sketch turns the Arduino into a AVRISP using the following Arduino pins: // // Pin 10 is used to reset the target microcontroller. From 58cf44a15a18560087ac18fc23238e437867dac9 Mon Sep 17 00:00:00 2001 From: fritzlb <106099434+fritzlb@users.noreply.github.com> Date: Mon, 11 Mar 2024 22:54:11 +0100 Subject: [PATCH 16/27] Update examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino Co-authored-by: per1234 --- examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index c614c91f..6ceb85f6 100644 --- a/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -3,7 +3,8 @@ // If you require a license, see // https://opensource.org/licenses/bsd-license.php // -// Please note that this sketch still uses MISO/MOSI instead of CIPO/COPI. +// Note that this sketch refers to the SPI bus pins using the legacy MISO/MOSI +// names rather than the modern CIPO/COPI names. // For further details, see https://docs.arduino.cc/learn/communication/spi // // This sketch turns the Arduino into a AVRISP using the following Arduino pins: From 2b0e9d3a0b1be986e16448d17e3a7337382e81ce Mon Sep 17 00:00:00 2001 From: per1234 Date: Thu, 13 Jun 2024 11:56:25 -0700 Subject: [PATCH 17/27] Automatically assign per1234 to Dependabot PRs As the primary maintainer of the project infrastructure, it is the responsibility of GitHub user per1234 to review and merge the pull requests automatically submitted by Dependabot for bumps of outdated project dependencies. Configuring Dependabot to automatically set the pull request assignment will slightly streamline that process. --- .github/dependabot.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fd7388a9..f640b039 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,8 @@ updates: # See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot - package-ecosystem: github-actions directory: / # Check the repository's workflows under /.github/workflows/ + assignees: + - per1234 schedule: interval: daily labels: From 86d9db63e2c30770e4bce3765ae7018ed4e8d397 Mon Sep 17 00:00:00 2001 From: per1234 Date: Thu, 13 Jun 2024 11:56:40 -0700 Subject: [PATCH 18/27] Don't limit number of open Dependabot pull requests The Dependabot service is used to keep the project dependencies updated. Thanks to the project's high quality validation infrastructure, the human effort required to complete a trivial version bump is minimal. However, some bumps may introduce breaking changes that would require a significant amount of effort to accommodate, or are blocked by external tasks. In this case, the Dependabot pull request can't be merged, but should be left open to track the need to perform the bump when it is feasible. This means that it should be expected that there will be regularly be a small number of Dependabot pull requests left open in the repository over long periods of time. The automated system is here to assist the human project maintainers, not as a tyrannical overlord, so this is the system working exactly as intended. By default, Dependabot is configured to stop submitting pull requests if it already has five open pull requests. This means that if it happens that the accumulation of intentionally on-hold pull requests reaches that number, the project stops receiving the easily handled trivial update PRs. This is very harmful because it results in the completely unnecessary use of outdated dependencies, and unnecessary challenging large bumps when pull requests start being submitted once more after the backlog is cleared. The harmful default configuration is hereby overridden by configuring the maximum open pull request limit at 100. This value was chosen as an arbitrary large number simply to functionally disable the limiting, rather than from any expectation that the actual number of open PRs can ever reach that count. --- .github/dependabot.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f640b039..621d3f24 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,6 +9,7 @@ updates: directory: / # Check the repository's workflows under /.github/workflows/ assignees: - per1234 + open-pull-requests-limit: 100 schedule: interval: daily labels: From 7f75d462c3eeb05bbcb58eca18a8a1ce26f21ea2 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 11 Sep 2024 04:33:57 -0700 Subject: [PATCH 19/27] Only delay after serial output in "Knock" The "Knock" sketch polls the voltage output from a piezo disc to detect the vibrations associated with a knock. The duration of vibrations from a single knock is likely to significantly exceed the unchecked polling interval. This would result in a single knock producing multiple detections, and thus multiple prints to Serial. In order to avoid this, a "debouncing" delay was added to the sketch. Previously the delay was positioned in the outer scope of the `loop` function, which caused it to always affect the polling interval. This caused the sketch to miss the detection of knocks that produced vibrations that only occurred during that unnecessary delay. The problem is fixed by moving the delay inside the knock detection conditional block, so that debouncing is only done when actually needed. --- examples/06.Sensors/Knock/Knock.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/06.Sensors/Knock/Knock.ino b/examples/06.Sensors/Knock/Knock.ino index fa174a1f..46047d99 100644 --- a/examples/06.Sensors/Knock/Knock.ino +++ b/examples/06.Sensors/Knock/Knock.ino @@ -49,6 +49,6 @@ void loop() { digitalWrite(ledPin, ledState); // send the string "Knock!" back to the computer, followed by newline Serial.println("Knock!"); + delay(100); // delay to avoid overloading the serial port buffer } - delay(100); // delay to avoid overloading the serial port buffer } From 9f74e1a5a4615ca54c3db19f02362fbb339c6e0d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 08:37:04 +0000 Subject: [PATCH 20/27] Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 9cde1acc..7680b377 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -70,7 +70,7 @@ jobs: file-url: https://raw.githubusercontent.com/arduino/tooling-project-assets/main/workflow-templates/assets/sync-labels/${{ matrix.filename }} - name: Pass configuration files to next job via workflow artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: | *.yaml From bf7b8b70e3a92ba5d6fd0f5fbb08edc14d8f18ac Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 14 Dec 2023 18:38:14 +0000 Subject: [PATCH 21/27] Bump actions/download-artifact from 3 to 4 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 7680b377..2e1d6e05 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v4 - name: Download configuration files artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} path: ${{ env.CONFIGURATIONS_FOLDER }} From ce3cef9c4bd4fd8abab10b530d5d583dcefc1ebd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 19:17:09 +0000 Subject: [PATCH 22/27] Bump geekyeggo/delete-artifact from 2 to 5 Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 2 to 5. - [Release notes](https://github.com/geekyeggo/delete-artifact/releases) - [Changelog](https://github.com/GeekyEggo/delete-artifact/blob/main/CHANGELOG.md) - [Commits](https://github.com/geekyeggo/delete-artifact/compare/v2...v5) --- updated-dependencies: - dependency-name: geekyeggo/delete-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 2e1d6e05..53a9f54f 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -114,7 +114,7 @@ jobs: path: ${{ env.CONFIGURATIONS_FOLDER }} - name: Remove unneeded artifact - uses: geekyeggo/delete-artifact@v2 + uses: geekyeggo/delete-artifact@v5 with: name: ${{ env.CONFIGURATIONS_ARTIFACT }} From 1b9c4c42ef39f980be203ecc64bdba778f9a8bbf Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 9 Oct 2024 05:07:47 -0700 Subject: [PATCH 23/27] Don't upload multiple times to same artifact in label sync workflow The "Sync Labels" GitHub Actions workflow is configured to allow the use of multiple shared label configuration files. This is done by using a job matrix in the GitHub Actions workflow to download each of the files from the source repository in a parallel GitHub Actions workflow job. A GitHub Actions workflow artifact was used to transfer the generated files between sequential jobs in the workflow. The "actions/upload-artifact" and "actions/download-artifact" actions are used for this purpose. Previously, a single artifact was used for the transfer of all the shared label configuration files, with each of the parallel jobs uploading its own generated files to that artifact. However, support for uploading multiple times to a single artifact was dropped in version 4.0.0 of the "actions/upload-artifact" action. So it is now necessary to use a dedicated artifact for each of the builds. These can be downloaded in aggregate by using the artifact name globbing and merging features which were introduced in version 4.1.0 of the "actions/download-artifact" action. --- .github/workflows/sync-labels.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 53a9f54f..514f29a7 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -19,7 +19,7 @@ on: env: CONFIGURATIONS_FOLDER: .github/label-configuration-files - CONFIGURATIONS_ARTIFACT: label-configuration-files + CONFIGURATIONS_ARTIFACT_PREFIX: label-configuration-file- jobs: check: @@ -76,7 +76,7 @@ jobs: *.yaml *.yml if-no-files-found: error - name: ${{ env.CONFIGURATIONS_ARTIFACT }} + name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}${{ matrix.filename }} sync: needs: download @@ -107,16 +107,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Download configuration files artifact + - name: Download configuration file artifacts uses: actions/download-artifact@v4 with: - name: ${{ env.CONFIGURATIONS_ARTIFACT }} + merge-multiple: true + pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}* path: ${{ env.CONFIGURATIONS_FOLDER }} - - name: Remove unneeded artifact + - name: Remove unneeded artifacts uses: geekyeggo/delete-artifact@v5 with: - name: ${{ env.CONFIGURATIONS_ARTIFACT }} + name: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}* - name: Merge label configuration files run: | From e695e8e3fc0f4ebe4df49ebf25fceccda9528a97 Mon Sep 17 00:00:00 2001 From: Per Tillisch Date: Sun, 16 Feb 2025 10:33:06 -0800 Subject: [PATCH 24/27] Document incomplete nature of "p08_DigitalHourglass" The sketches under the "10.StarterKit_BasicKit" folder are provided to accompany the Arduino Projects Book of the Arduino Starter Kit. The Arduino Projects Book explains the code of these sketches and gives instructions for their usage. In addition to owners of the Arduino Starter Kit, other users might use these prominent sketches as learning references. Those users won't have the context that would be provided by the Arduino Projects Book. For this reason, explanatory comments have been added to these sketches. The "p08_DigitalHourglass" is unique in that it is intentionally left incomplete. The Arduino Projects Book instructs the user to add their own code to indicate the completion of the timer. It is important that this code be added, since the incomplete code does not halt the LED control code at the end of the hour. If the incomplete code is used unchanged, the LED control code will call `digitalWrite` on additional pins. Previously, the comments in the sketch did not explain the incomplete nature of the sketch. Comments are hereby added to explain this to users who don't have the context provided by the Arduino Projects Book. --- .../p08_DigitalHourglass/p08_DigitalHourglass.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino b/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino index 9fbbc186..3122c675 100644 --- a/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino +++ b/examples/10.StarterKit_BasicKit/p08_DigitalHourglass/p08_DigitalHourglass.ino @@ -10,6 +10,9 @@ - six LEDs - tilt switch + NOTE: This sketch is intentionally incomplete. Make sure to add your own code + for whatever you want to happen at the end of the hour. + created 13 Sep 2012 by Scott Fitzgerald @@ -55,6 +58,7 @@ void loop() { if (led == 7) { // the hour is up + // add your indicator code here } } From 62e794aecd3eb4d5236dfd98ddaf5bc36ee1f60d Mon Sep 17 00:00:00 2001 From: Per Tillisch Date: Fri, 13 Jun 2025 05:06:34 -0700 Subject: [PATCH 25/27] Remove superfluous `.DS_Store` This file serves no purpose and only clutters up the repository. --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 94e8e06d0b3c0eea52a799b60b44125cd5fb1383..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ8Hu~5S?*U2;8_#xmWNF7NeX%7qG!0jV*_Sgp{gst{ly8K7<&_jUkPB12b=T zcHRoTLZcB8-F)oVA}bMT;fC^UVQO}6KCwk+6bQ#1uX2!QdH?L+hDr5&!niFsU$T?q zU;g1Vyu`ipL}sY~6`%rCfC^B7n-s9#3u~8wj8uRMP=Q|s?E6sQhBa{v^iKzZj{v|1 zX*aBWmH-w@0BhnHhzv}F3Jj{|h@nA8zGPiZ90P+cn!|_YlQkz4^{3kdX>d zflCD*V!N{b{{+7>|6h{0qXJamt`yLw>$?qJDSPYW<*e5h_!e$8KX5awor2))80hU7 g8*9gpUKDl3);O<;W1!QKcRG+i1Evd&3jDVMXN%qytN;K2 From 6b681c782c076202264a286fec86ed17b1ffe04b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:35:17 +0000 Subject: [PATCH 26/27] Bump actions/download-artifact from 4 to 5 Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/sync-labels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 514f29a7..39df4f7d 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v4 - name: Download configuration file artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v5 with: merge-multiple: true pattern: ${{ env.CONFIGURATIONS_ARTIFACT_PREFIX }}* From 4a526f748e7095c35ee9d1568ce90f34ba5a4f36 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 21:11:03 +0000 Subject: [PATCH 27/27] Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/code-formatting-check.yml | 2 +- .github/workflows/compile-examples.yml | 2 +- .github/workflows/spell-check.yml | 2 +- .github/workflows/sync-labels.yml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-formatting-check.yml b/.github/workflows/code-formatting-check.yml index bb3479f3..216b514c 100644 --- a/.github/workflows/code-formatting-check.yml +++ b/.github/workflows/code-formatting-check.yml @@ -29,7 +29,7 @@ jobs: echo "CLANG_FORMAT_INSTALL_PATH=${{ runner.temp }}/clang-format" >> "$GITHUB_ENV" - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Download ClangFormat id: download diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index b184f9da..ed0f5ac7 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -242,7 +242,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Compile examples uses: arduino/compile-sketches@v1 diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index a3af916b..e3ed1de3 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md - name: Spell check diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index 39df4f7d..e9746954 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Download JSON schema for labels configuration file id: download-schema @@ -105,7 +105,7 @@ jobs: echo "::set-output name=flag::--dry-run" - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Download configuration file artifacts uses: actions/download-artifact@v5