Longan-Labs / Arduino_CAN_BUS_MCP2515

Arduino CAN Bus library, MCP2515/MCP2551
https://www.longan-labs.cc/
MIT License
118 stars 371 forks source link

mcp_can.h no such file or directory error #27

Closed Matt-Nor closed 9 months ago

Matt-Nor commented 2 years ago

I've been working on a project using an Arduino Uno with success but am trying to switch over to a Mega as I need more inputs.

I'm unable to establish communication on the Mega so I've been trying to use this library however when I compile I get the following error.

multiMotorPosCtrl:10:10: fatal error: mcp_can.h: No such file or directory

include

      ^~~~~~~~~~~

compilation terminated. exit status 1 mcp_can.h: No such file or directory

Anyone have advice?

My code is available in the below link: https://drive.google.com/file/d/1GyWThPyuqSBLzfnIKNLt5sGKc8tEOWh4/view?usp=sharing