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

Library does not support SAMD21 M0 boards #3

Open
robomike opened this issue Feb 29, 2020 · 1 comment
Open

Library does not support SAMD21 M0 boards #3

robomike opened this issue Feb 29, 2020 · 1 comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@robomike
Copy link

Arduino: 1.8.12 (Linux), Board: "Arduino M0"

In file included from /root/Arduino/libraries/ArduinoRS485/src/RS485.cpp:20:0:
/root/Arduino/libraries/ArduinoRS485/src/RS485.h:35:30: error: 'A6' was not declared in this scope
#define RS845_DEFAULT_DE_PIN A6
^
/root/Arduino/libraries/ArduinoRS485/src/RS485.cpp:169:62: note: in expansion of macro 'RS845_DEFAULT_DE_PIN'
RS485Class RS485(SERIAL_PORT_HARDWARE, RS485_DEFAULT_TX_PIN, RS845_DEFAULT_DE_PIN, RS845_DEFAULT_RE_PIN);
^~~~~~~~~~~~~~~~~~~~
/root/Arduino/libraries/ArduinoRS485/src/RS485.h:35:30: note: suggested alternative: 'A5'
#define RS845_DEFAULT_DE_PIN A6
^
/root/Arduino/libraries/ArduinoRS485/src/RS485.cpp:169:62: note: in expansion of macro 'RS845_DEFAULT_DE_PIN'
RS485Class RS485(SERIAL_PORT_HARDWARE, RS485_DEFAULT_TX_PIN, RS845_DEFAULT_DE_PIN, RS845_DEFAULT_RE_PIN);
^~~~~~~~~~~~~~~~~~~~

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Mar 14, 2020
@per1234 per1234 added the topic: code Related to content of the project itself label May 17, 2022
@per1234 per1234 assigned per1234 and unassigned per1234 Jan 13, 2023
@per1234
Copy link
Contributor

per1234 commented Jan 13, 2023

Thanks for your report @robomike. There was a related fix for the Arduino Zero board in #34. That fix targeted the Zero board exclusively, but expanding the preprocessor conditional code to include the ARDUINO_SAM_ZERO board definition macro of the Arduino M0 board (as well as the M0 Pro) should provide compatibility with this board as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants