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 a bit confused about the getc() and putc() functions of class Serial. In the usage notes it seems like they return a value of type int and that putc() accepts an int. But in many of the usages it seems like the variable assigned is declared as type char. So what is the type for these functions, both of the input parameter and the returned value.
I am writint a small code to read a value from analogIn and then write it on the terminal. All I get is zero. I think its because I am maybe passing a float to the putc().