   analogOutPin(1,10)    // electrical power
 };
 
+// Stage/Abort status (on=stage, off=abort
+uint8_t stageabort = 1;
+
 // Set the pins on the I2C chip used for LCD connections:
 //                    addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
 LiquidCrystal_I2C lcd(0x3f, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

  while (Serial1.available()) {
		c = Serial1.read();
		Serial.write(c);
	}
}

void loop() {
  checkSerialInputUSBtoUART();
  checkSerialInputUARTtoUSB();
  // send joystick state
  delay(200);
}


  lcd.print("KSP-Gegi");
  lcd.setCursor(0,1);
  lcd.print("Ready for action");
  // joystick setup
  Joystick.begin(false);	// don't do auto send state
  // request status update
  Serial.println("I");
}
