Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino Nano Every! #466

Open
MSTIGM opened this issue Aug 22, 2020 · 1 comment
Open

Arduino Nano Every! #466

MSTIGM opened this issue Aug 22, 2020 · 1 comment

Comments

@MSTIGM
Copy link

MSTIGM commented Aug 22, 2020

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

@soundanalogous
Copy link
Member

Work is in progress, please follow this pull request: #464.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants