mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-07-27 19:55:59 +00:00
fix/spi-begin-esp32-compat
ESP32 users need to call SPI.begin() with custom pin assignments before using the library (GPIO matrix). The hardcoded SPI.begin() in mcp2518fd::begin() overwrites this configuration. Changes: - Replace SPI.begin() with pSPI->begin() (consistent with MCP2515) - Add optional _initSPI parameter (default true) to begin() across MCP_CAN, mcp2515, and mcp2518fd so ESP32 users can skip SPI init Existing code is unaffected — default behavior unchanged. Closes #158
Seeed Arduino CAN 
| CAN BUS Shield | 2-Channel CAN-BUS(FD) Shield |
|---|---|
![]() |
![]() |
CAN-BUS is a common industrial bus because of it's long travel distance, medium communication speed and high reliability. It is commonly found on modern machine tools and as an automotive diagnostic bus.
For more information, please refer to CAN-BUS_Shield_V2.0 wiki page and CAN-BUS FD wiki page
License
This software is written by seeed studio and is licensed under The MIT License. Check License.txt for more information.
Contributing to this software is warmly welcomed. You can do this basically by forking, committing modifications and then pulling requests (follow the links above for operating guide). Adding change log and your contact into file header is encouraged. Thanks for your contribution.
Languages
C++
77.8%
C
22.2%

