autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
793 stars 279 forks source link

Arduino DUE Issue #91

Open swarren21 opened 1 year ago

swarren21 commented 1 year ago

I seem to be having a problem with interfacing the MCP2515 library with the Arduino DUE. A couple of issue threads mention commenting out the lines:

MCP2515::MCP2515(const uint8_t _CS) { //SPI.begin(); SPICS = _CS; pinMode(SPICS, OUTPUT); //endSPI(); }

However I have tried this and it still isn't working. I have no problem getting two UNO's to communicate via the MCP2515, but whenever I try with the DUE it never works. Am I missing something here?

AlessioSavelli commented 1 year ago

Read the last .cpp and .h modification (You have to make the modifications manually yourself on your libraries) and try the latest modifications of the example sketch by implementing the suggested changes in the comments. https://github.com/autowp/arduino-mcp2515/pulls