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.
Hi,
This simple code works fine on the LPC1768, but not on the new LPC11U24. Have I missed something?
#include "mbed.h" Serial pc(USBTX, USBRX); // tx, rx Serial device(p9, p10); // tx, rx DigitalOut rxLed(LED1); DigitalOut txLed(LED2); int main() { while(1) { if(pc.readable()) { device.putc(pc.getc()); txLed =! txLed; } if(device.readable()) { pc.putc(device.getc()); rxLed =! rxLed; } } }