Mcp2515 Proteus Library -

void MCP2515_Init() // Initialize SPI SSPCON = 0b00001101; // Master mode, SCK pin used SSPSTAT = 0b00000000; // Slew rate disabled

Hey everyone,

If you see 0xFF or random garbage, the SPI model is corrupt. Reinstall the library. mcp2515 proteus library

if (mcp2515.readMessage(&canMsg) == MCP2515::ERROR_OK) Serial.print("Received ID: "); Serial.println(canMsg.can_id, HEX); void MCP2515_Init() // Initialize SPI SSPCON = 0b00001101;