Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi mbed community,
I declared in one file the output variables like this:
DigitalOut L_ON_OFF( LED1 ); DigitalOut L_PLAY( LED2 ); DigitalOut L_NO_MEM( LED3 ); DigitalOut L_NO_SAT( LED4 );
I want to use them in another file, and I called them like this:
extern DigitalOut L_ON_OFF( LED1 ); extern DigitalOut L_PLAY( LED2 ); extern DigitalOut L_NO_MEM( LED3 ); extern DigitalOut L_NO_SAT( LED4 );
But the compiler gave me the error:
Someone has an idea for a possible solution?
Thank you in advance.