Skip to content

Commit

Permalink
Merge pull request #517 from firmata/UnoR4_2
Browse files Browse the repository at this point in the history
Fix compilation for UNOR4
  • Loading branch information
pgrawehr authored Sep 13, 2024
2 parents 53bb550 + 6c48901 commit ebd19be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,8 @@ writePort(port, value, bitmask): Write an 8 bit port.
#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 ebd19be

Please sign in to comment.