Think Fast! How fast of a blink can you see? Change both delay times to 1 millisecond. Can you still see it blinking? Change the number until you can just barely see it blinking. Now, slide the digital sandbox back and forth quickly while watching the LED. What do you see? What do you think is going on? Dot-dot-dot-dash-dash-dash… In the old days, Hint: to create an the code snippet might look like: “A”, people used dots and dashes to communicate to digitalWrite(4, HIGH); each other. A dot was a short blip and a dash delay(200); was a longer blip. This is what is called Morse digitalWrite(4, LOW); code. Compose a short message (maybe a single word) and write out the code needed to digitalWrite(4, HIGH); reproduce it. delay(600); digitalWrite(4, LOW); delay(600);
Think Fast! How fast of a blink can you see? Change both delay times to 1 millisecond. Can you still see it blinking? Change the number until you can just barely see it blinking. Now, slide the digital sandbox back and forth quickly while watching the LED. What do you see? What do you think is going on? Dot-dot-dot-dash-dash-dash… In the old days, people used dots and dashes to communicate to each other. A dot was a short blip and a dash was a longer blip. This is what is called Morse code. Compose a short message (maybe a single word) and write out the code needed to reproduce it. Hint: to create an “A”, the code snippet might look like: digitalWrite(4, HIGH); delay(200); digitalWrite(4, LOW); digitalWrite(4, HIGH); delay(600); digitalWrite(4, LOW); delay(600);
1-Digital-Sandbox-Intro-v2_cb.docx