public static void main(String[] s) throws Exception {
Picture p = new Picture(System.in);
print(p.data, p.width, p.height);
public static void main(String[] s) throws Exception {
Picture p = new Picture(System.in);
print(p.data, p.width, p.height);
// you'll need to run this once at 9600 to tell the built-in eeprom to switch to 38,400kbps
//sp.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
// you'll need to run this once at 9600 to tell the built-in eeprom to switch to 38,400kbps
//sp.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
sp.setSerialPortParams(38400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
sp.setSerialPortParams(38400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);