arduino-examples
arduino-examples copied to clipboard
Arduino IDE bundled examples
*Moved from https://github.com/arduino/Arduino/pull/7239 by @codetheorist* * Remove unused ledPin constant * Make comments more natural language * Change if/ese statement to demonstrate shorthand variable flipping
*Moved from https://github.com/arduino/Arduino/pull/6154 by @zfields* This is a basic sample of the interrupt functionality. It only exists in the documentation, but not formally in any example code.
The documentation page: https://www.arduino.cc/en/Tutorial/Debounce has an error in the [code](https://github.com/arduino/Arduino/blob/be9bbc3255e784108fc10a069d79a4fa8b4ca37e/build/shared/examples/02.Digital/Debounce/Debounce.ino). The variable `buttonState` at line 40 is uninitialized which will cause undefined behaviour the first time line 75 `if (reading...
Can you add examples for the multi plot feature ? Thanks
The following code typically loops one more time than `times` e.g. with 0, it loops once, with 1, it loops twice. ``` #define PTIME 30 void pulse(int pin, int times)...
When using bit banged SPI, which the sketch did when compiled for any architecture other than AVR, a `SPISettings` class was declared by the sketch. At the time the sketch...
Using ArduinoISP, when programming is over the PIN_MISO remain with the PULL_UP enable. This can interfere with other SPI devices connected at the same time on the SPI bus (as...
no more magic numbers for eg the buzzer pin
*Moved from https://github.com/arduino/Arduino/pull/8133 by @f34rdotcom* If the host sends a signon but does not get a SYNC response it will send again. This will lead to being out of sync...
*Moved from https://github.com/arduino/Arduino/pull/9920 by @MisterAwesome23*