Skip to content

Commit

Permalink
Fix build for UnoR4 Wifi/Minima
Browse files Browse the repository at this point in the history
Build was broken possibly due to a change in the
core libraries.
  • Loading branch information
pgrawehr committed Sep 12, 2024
1 parent c5e2c29 commit 36c3fb3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/utility/Boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -808,13 +808,8 @@ static inline void attachInterrupt(pin_size_t interruptNumber, voidFuncPtr callb
#define TOTAL_ANALOG_PINS 8
#define TOTAL_PINS 22 // 14 digital + 8 analog
#endif
// These have conflicting(?) definitions in the core for this CPU
#undef IS_PIN_PWM
#undef IS_PIN_ANALOG
#define VERSION_BLINK_PIN 13
#define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) <= 19)
#define IS_PIN_ANALOG(p) ((p) >= 14 && (p) < 14 + TOTAL_ANALOG_PINS)
#define IS_PIN_PWM(p) digitalPinHasPWM(p)
#define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) - 2 < MAX_SERVOS)
#define IS_PIN_I2C(p) ((p) == 18 || (p) == 19)
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)
Expand Down

0 comments on commit 36c3fb3

Please sign in to comment.