// Main.print("GOT: " + stdIn.readLine());
// try {
// this.write("[+]Connected to tgFX\n");
// } catch (Exception ex) {
// }
TinygDriver tg = TinygDriver.getInstance();
String line = "";
SerialDriver ser = SerialDriver.getInstance();
while (ser.isConnected() && !disconnect) {
try {
line = stdIn.readLine() + "\n";
tg.write(line);
Thread.sleep(100);
} catch (IOException ex) {
disconnect = true;
} catch (Exception ex) {
Main.print("run(): " + ex.getMessage());