9 years, 5 months ago.  This question has been closed. Reason: Off Topic

Identifier "CAN" is undefined "CAN can(PD_0,PD_1)"

Hello. An error occurs when compiling:

  1. include "mbed.h"

DigitalOut myled(LED1); CAN can1(PD_0, PD_1);

int main() { while(1) { myled = 1; LED is ON wait(0.2); 200 ms myled = 0; LED is OFF wait(1.0); 1 sec } }