/*
Simpit for Flightgear flight simulator.
simple cicuit to check the viabilité of
putting a led in series with a switch/button.
Arduino sends 1 or 0 via serial to the simulator
toggling a property according to the value 1 or 0.
No extra pin used!
*/
const int buttonPin = 2;
void setup() {
pinMode(buttonPin, INPUT);
Serial.begin(115200);
}
void loop() {
Serial.print(digitalRead(buttonPin));
delay(50);
}