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.
I am currently using the following
DigitalOut User_Led1(LED1);
AnalogIn AD0(15);
Serial pc(USBTX, USBRX);
and wish to use the same syntax in other modules of code. If i include these at the start of the code or in a header file the linker complains of multiple definitions. If i exclude them the the compiler complains that the the are not defined.
As i wish to use such lines as
pc.printf("Welcome the the MBED Developers Module\n\r");
and
User_Led1 = LED_OFF;
in other C source modules, how do i go about doing this ?