Arduino_CAN_BUS_MCP2515 icon indicating copy to clipboard operation
Arduino_CAN_BUS_MCP2515 copied to clipboard

Dual_CAN.ino error?

Open radioelf opened this issue 9 years ago • 0 comments

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);

radioelf avatar Sep 07 '16 05:09 radioelf