import stamp.core.*; import SerialController; public class Testing { public static void main() { SerialController serial = new SerialController(CPU.pin15, CPU.pin14, Uart.speed2400); serial.Buffer.append("!DC16"); char block = 3; serial.Buffer.append(block); serial.Buffer.append("V"); System.out.println("Sending: " + serial.Buffer.toString()); System.out.println(serial.SerOut(1000)); System.out.println("Receiving..."); while (true) { //Expect 3 bytes and wait up to 1000ms for them (sweet!) if (serial.SerIn()) { System.out.println("BINGO! " + serial.Buffer.toString()); } } } }