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,
I would like to use an external power to the mbed with vin and use the usb port as serial port and alimentation. I did the pc serial communication tutorial and I tried to do the same using an mbed. The USB of the computer was both serial port and giving power to the mbed. I would know if its possible to do the same with the mbed usb port being seiral port and serial port.
Here is code :
Serial xbee(USBTX, USBRX); DigitalOut myled(LED1);
int main() { while(1) { char c = xbee.getc(); if(c == 'a') { myled = 1; } else if (c == 'b') { myled = 0; } } }
Thank you