trouble sending data with UART VP
Hello,
I'm having trouble getting my data to show up in the terminal window correctly.· I'm trying to send SRF04 distances through the·UART VP but the output on the window is not numerical data.· Any help here would be much appreciated.
·
I'm having trouble getting my data to show up in the terminal window correctly.· I'm trying to send SRF04 distances through the·UART VP but the output on the window is not numerical data.· Any help here would be much appreciated.
·
Comments
regards peter
// ie
static Uart LCD = new Uart(Uart.dirTransmit,CPU.pin13,Uart.invert,Uart.speed9600,Uart.stop1);
static StringBuffer bufferOut = new StringBuffer(100);
static int distance = 20; // for example
...........
bufferOut.clear();
bufferOut.append("distance is ");
bufferOut.append(distance);
LCD.sendString(bufferOut.toString());