From 781b87399a61c2b7aa5b4f26a4cd6b4399c679df Mon Sep 17 00:00:00 2001 From: Ian Katz Date: Tue, 16 May 2023 22:00:21 -0400 Subject: [PATCH] define analog pins --- CHANGELOG.md | 1 + cpp/arduino/ArduinoDefines.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8c00f3b..989e170f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - `Logger` class to centralize CI runner script logging (in particular, indentation) - Explicit reporting of free bytes after compilation - `interrupt.h` mock +- `#define` statements for analog pins `A0` - `A11` ### Changed - `arduino_ci.rb` uses new `Logger` diff --git a/cpp/arduino/ArduinoDefines.h b/cpp/arduino/ArduinoDefines.h index 3f4de7ad..85dbb9f1 100644 --- a/cpp/arduino/ArduinoDefines.h +++ b/cpp/arduino/ArduinoDefines.h @@ -92,6 +92,20 @@ #if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__SAM3X8E__) || defined(__SAMD21G18A__) // Verified on these platforms, see https://github.com/Arduino-CI/arduino_ci/pull/341#issuecomment-1368118880 #define LED_BUILTIN 13 + + #define A0 14 + #define A1 15 + #define A2 16 + #define A3 17 + #define A4 18 + #define A5 19 + #define A6 20 + #define A7 21 + #define A8 22 + #define A9 23 + #define A10 24 + #define A11 25 + #endif // Arduino defines this