Arduino software to pilot the strobe lights of an aircraft
Use the Arduino web editor to write the program to your Arduino You can also use ThinkerCad to see this software in actiono without any Arduino.
This code provide 6 different programs, you've only to press the switch to go through all of them
Add your own code in a new function
void runProgramX() {
Serial.print("runProgramX\n");
digitalWrite(ledLeft, HIGH);
digitalWrite(ledRight, HIGH);
digitalWrite(ledTail, HIGH);
...
}
Add your function to the function pointers array
void (* programs[])() = {
runProgram0,
runProgram1,
runProgram2,
runProgram3,
runProgram4,
runProgram5,
runProgramX
};