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, 11 months ago.
lpc11U24 serial
Hi; i'm using this code to send a char from 'PC' to 'd2' but i recieve the character sent to 'd2' in PC, is it the same serial port ??
- include "mbed.h" Serial pc (USBTX,USBRX); Serial d2 (p9,p10); tx, rx
int main() { d2.baud (57600); pc.baud (57600);
while (1) {
d2.putc (pc.getc ());
} }