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.
8 years, 8 months ago.
How can I input values of variables after compiling ?
When I have a code like the one below :
void rotate( int A, float B, char C ) for ( int i = 0; i < B; i++ )
How do I input the values once I compile and load my program into the platform I'm using (LPC 1768) . Do I need to download any software for this ?
Thanks in advance.
Question relating to:
1 Answer
8 years, 8 months ago.
The easiest way is to read them from a serial port using something like the scanf() function.
You will need the mbed serial port drivers and a serial port terminal program if you don't already have them installed but that's it.