Arduino_CAN_BUS_MCP2515
Arduino_CAN_BUS_MCP2515 copied to clipboard
Dual_CAN.ino error?
Hi. error: 'AA' was not declared in this scope byte txBuf0[] = {AA,55,AA,55,AA,55,AA,55}; byte txBuf1[] = {55,AA,55,AA,55,AA,55,AA}; changed to: byte txBuf0[] = {0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55}; byte txBuf1[] = {0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA};
error: 'tx0Buf' was not declared in this scope CAN0.sendMsgBuf(0x1000000, 1, 8, tx0Buf); CAN1.sendMsgBuf(0x1000001, 1, 8, tx1Buf); changed to: CAN0.sendMsgBuf(0x1000000, 1, 8, txBuf0); CAN1.sendMsgBuf(0x1000001, 1, 8, txBuf1);