/* Starts with 15 flashes, then turns on an LED on for five seconds, then off for five seconds, repeatedly. modified 20 July 2024 by Manfred */ int StartCount = 0; void setup() { // initialize all ports pinMode (1, INPUT_PULLUP); pinMode (2, INPUT_PULLUP); pinMode (3, INPUT_PULLUP); pinMode (4, INPUT_PULLUP); pinMode (5, INPUT_PULLUP); pinMode (6, INPUT_PULLUP); pinMode (7, INPUT_PULLUP); pinMode (8, INPUT_PULLUP); pinMode (9, INPUT_PULLUP); pinMode (10, INPUT_PULLUP); pinMode (11, INPUT_PULLUP); pinMode (12, INPUT_PULLUP); pinMode (13, OUTPUT); pinMode (14, INPUT_PULLUP); pinMode (15, INPUT_PULLUP); pinMode (16, INPUT_PULLUP); pinMode (17, INPUT_PULLUP); pinMode (18, INPUT_PULLUP); pinMode (19, INPUT_PULLUP); do { digitalWrite (13, HIGH); delay(250); digitalWrite(13, LOW); delay(500); StartCount ++; } while (StartCount < 15); } // the loop function runs over and over again forever void loop() { digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level) delay(5000); // wait for a second digitalWrite(13, LOW); // turn the LED off by making the voltage LOW delay(5000); // wait for a second }