Open MSTIGM opened 4 years ago
Hi,
How can I use firmata for Arduino Nano Every??? I really need it for this version of arduino (NOT adruino nano or micro)... I already tried to add these codes to "Boards.h" file but a lot of new errors appears after that!
elif defined(AVR_NANO_EVERY) || elif defined(ARDUINO_NANO_EVERY) #define TOTAL_ANALOG_PINS 8 #define TOTAL_PINS 24 // 14 digital + 8 analog + 2 i2c #define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) <= 21) // TBD if pins 0 and 1 are usable #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) < MAX_SERVOS) // deprecated since v2.4 #define IS_PIN_I2C(p) ((p) == PIN_WIRE_SDA || (p) == PIN_WIRE_SCL) // SDA = 22, SCL = 23 #define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK) #define PIN_TO_DIGITAL(p) (p) #define PIN_TO_ANALOG(p) ((p) - 14) #define PIN_TO_PWM(p) PIN_TO_DIGITAL(p) #define PIN_TO_SERVO(p) (p) // deprecated since v2.4
Please help me... Thank you for your attensions. Kind Regards, Stig
Work is in progress, please follow this pull request: https://github.com/firmata/arduino/pull/464.
Hi,
How can I use firmata for Arduino Nano Every??? I really need it for this version of arduino (NOT adruino nano or micro)... I already tried to add these codes to "Boards.h" file but a lot of new errors appears after that!
Please help me... Thank you for your attensions. Kind Regards, Stig