autowp / arduino-canhacker

CanHacker (lawicel) CAN adapter on Arduino + MCP2515
MIT License
372 stars 114 forks source link

Can.h #8

Closed devguyplus closed 6 years ago

devguyplus commented 6 years ago

I can't find can.h file.

autowp commented 6 years ago

That file is from arduino-mcp2515 library, see installation notes

devguyplus commented 6 years ago

Yes, I've noticed. Thank you. I'm trying to implement your example code in my own code, and I have a few questions. What is softwareSerial used for and is it mandatory? I also get an error from this line: canHacker = new CanHacker(interfaceStream, null, SPI_CS_PIN); "'null' was not declared in this scope"

autowp commented 6 years ago

https://www.arduino.cc/en/Reference/SoftwareSerial It's alternative to UART, not mandatory