Skip to content

Commit 781b873

Browse files
committed
define analog pins
1 parent e29b91d commit 781b873

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- `Logger` class to centralize CI runner script logging (in particular, indentation)
1212
- Explicit reporting of free bytes after compilation
1313
- `interrupt.h` mock
14+
- `#define` statements for analog pins `A0` - `A11`
1415

1516
### Changed
1617
- `arduino_ci.rb` uses new `Logger`

cpp/arduino/ArduinoDefines.h

+14
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@
9292
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__SAM3X8E__) || defined(__SAMD21G18A__)
9393
// Verified on these platforms, see https://github.com/Arduino-CI/arduino_ci/pull/341#issuecomment-1368118880
9494
#define LED_BUILTIN 13
95+
96+
#define A0 14
97+
#define A1 15
98+
#define A2 16
99+
#define A3 17
100+
#define A4 18
101+
#define A5 19
102+
#define A6 20
103+
#define A7 21
104+
#define A8 22
105+
#define A9 23
106+
#define A10 24
107+
#define A11 25
108+
95109
#endif
96110

97111
// Arduino defines this

0 commit comments

Comments
 (0)