pillar1989 34c1d6ff91 fix: use pSPI->begin() and add skipSpiBegin option for ESP32 compatibility
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
2026-05-26 11:20:23 +08:00
2018-05-28 06:55:07 -04:00
2020-05-12 17:21:50 +08:00
2020-05-12 17:21:50 +08:00
2020-12-10 11:37:17 +08:00
2020-12-10 11:38:35 +08:00
2024-03-18 09:06:42 +08:00
2018-05-28 07:28:56 -04:00
2021-01-28 15:26:27 +08:00

Seeed Arduino CAN Build Status

CAN BUS Shield 2-Channel CAN-BUS(FD) Shield
CAN BUS Shield CAN BUS 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.

Analytics

S
Description
Seeed Arduino CAN-BUS library - MCP2518FD&MCP2515&MCP2551
Readme
997 KiB
Languages
C++ 77.8%
C 22.2%