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.
9 years, 8 months ago.
Can I display ascii on my PC screen, and if so what is the code for it?
Using the mbed NXP MCU in DIP package
1 Answer
9 years, 8 months ago.
include the mbed library with this snippet
#include "mbed.h" Serial pc(USBTX, USBRX); int main() { int a=10; pc.printf("value=%d \n\r",a); }
install the serial driver on the PC (http://developer.mbed.org/handbook/Windows-serial-configuration) and then use any serial communication tool i.e. Putty, for serial communication (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)