int Dit = 300; // Define Dit length int Dah = 900; // Define Dah length int Space = 300; // Define space between Dit and Dah int lSpace = 900; // Define letter space int wSpace = 2100; // Define word space void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(LED_BUILTIN, HIGH); // DASH turn the LED on (HIGH is the voltage level) delay (Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // DIT turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // DASH turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(lSpace); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(lSpace); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dash turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(lSpace); // wait digitalWrite(LED_BUILTIN, HIGH); // Dash turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dash turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dash turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(lSpace); // wait digitalWrite(LED_BUILTIN, HIGH); // DASH turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // DASH turn the LED on (HIGH is the voltage level) delay(Dah); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(lSpace); // wait digitalWrite(LED_BUILTIN, HIGH); // DASH turn the LED on (HIGH is the voltage level) delay(Dah); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(Space); // wait digitalWrite(LED_BUILTIN, HIGH); // Dit turn the LED on (HIGH is the voltage level) delay(Dit); // wait digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(wSpace); // wait }