Skip to content

Commit ebd19be

Browse files
authored
Merge pull request #517 from firmata/UnoR4_2
Fix compilation for UNOR4
2 parents 53bb550 + 6c48901 commit ebd19be

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Boards.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,13 +464,8 @@ writePort(port, value, bitmask): Write an 8 bit port.
464464
#define TOTAL_ANALOG_PINS 8
465465
#define TOTAL_PINS 22 // 14 digital + 8 analog
466466
#endif
467-
// These have conflicting(?) definitions in the core for this CPU
468-
#undef IS_PIN_PWM
469-
#undef IS_PIN_ANALOG
470467
#define VERSION_BLINK_PIN 13
471468
#define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) <= 19)
472-
#define IS_PIN_ANALOG(p) ((p) >= 14 && (p) < 14 + TOTAL_ANALOG_PINS)
473-
#define IS_PIN_PWM(p) digitalPinHasPWM(p)
474469
#define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) - 2 < MAX_SERVOS)
475470
#define IS_PIN_I2C(p) ((p) == 18 || (p) == 19)
476471
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)

0 commit comments

Comments
 (0)