-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
setPins() for rx/tx and cs/irq? #139
Comments
That depends on whether you're targetting ESP32 or AVR architecture. |
I also didn't quite understand the function:
According to the code |
Look at the top of the header file... the MCP2515 class can't be used on ESP32: Line 4 in b514e6b
And the SJA1000 can only be used on ESP32 hardware: arduino-CAN/src/ESP32SJA1000.h Line 4 in b514e6b
In other words, platform has everything to do with it ;) |
I am using an MCP2515 on an ESP32 and writing code in PlatformIO/VSCode with the Arduino framework. I need to set both rx/tx and cs/irq from the defaults. I see in the API.md that there are two calls to setPins() for both pairs of pins. How does the library know which set of pins I am defining?
The text was updated successfully, but these errors were encountered: