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.
Can I use the mbed instead of a FTDI cable (I don't have one and don't want to get one if unnecessary)?
Is it as simple as connecting up the TX / RX of the device I am trying to program (an LS20031 GPS) to relevant mbed pins then writing code for the mbed to pass everything through via USB? I would then use something like minigps in the same way as if I had an FTDI cable.
eg:
#include "mbed.h" Serial gps(p9,p10); Serial pc(USBTX,USBRX); int main() { while(1) { if ( gps.readable()) { pc.putc(gps.getc()); } if (pc.readable()) { gps.putc(pc.getc()); } } }