Skip to content

Commit

Permalink
define analog pins
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfixes committed Jun 7, 2023
1 parent 981e0b7 commit 9eb413d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,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`
Expand Down
14 changes: 14 additions & 0 deletions cpp/arduino/ArduinoDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9eb413d

Please sign in to comment.