Emergency Transmission Protocol
The power grid flickers one final time before dying completely. Sector 7's main communication array falls silent, its holographic displays fading to black. In the suffocating darkness of the underground bunker, you realize the quantum communicators are useless without power. The neural uplinks have gone cold. Even the emergency channels are down.
But wait. Your fingers find something in the debris, a relic from the old world. A simple button. A single LED. The basic components that powered communication for over a century before the Neon Realm's digital revolution. Your grandmother's stories flood back, tales of dots and dashes cutting through static when nothing else could reach across the void.
The resistance needs to know Sector 7 has fallen. Command needs coordinates for the evacuation. Lives hang in the balance, and you have one chance to break through the electromagnetic chaos using the oldest trick in the book. Your fingers trace the familiar pattern: dot-dot-dot, dash-dash-dash, dot-dot-dot. Three short, three long, three short. The universal cry for help.
Time to build a Morse code machine. Time to light up the darkness with the rhythm of survival itself. In a world of quantum encryption and neural networks, sometimes the simplest solutions cut through the noise like nothing else can. Every press of that button could mean the difference between rescue and oblivion.
Mission Briefing: What You'll Master
When you complete this mission, you'll be able to:
- Wire a button to detect human input and respond instantly
- Control an LED with precise on/off timing using button presses
- Create a simple telegraph interface that responds to your touch
- Build the foundation for any communication system using basic digital signals
- Transform simple button presses into meaningful light patterns
- Understand how input devices talk to output devices in real time
This isn't just about blinking lights. You're building a direct connection between human intention and machine response, the fundamental principle behind every interface from keyboards to touch screens to voice commands.
The Button-LED Connection: Digital Telepathy
Think about a light switch in your house. Press it down, and electrons flow through wires to power a bulb. Release it, and the connection breaks. That's exactly what we're building here, except our "light switch" is a tiny button and our "bulb" is a precision LED that can flash faster than your eye can follow.
But here's where it gets interesting. Unlike a mechanical light switch that directly connects wires, our setup uses the HERO Board as an intelligent middleman. The button doesn't physically control the LED at all. Instead, it sends a digital signal to the microcontroller, which then decides what to do with the LED. This separation gives us incredible power.
Imagine if your light switch could remember patterns, delay responses, or trigger multiple lights based on how long you held it down. That's what digital input gives us. The button becomes a communication device, and the LED becomes a visual language. Every press translates intention into action through code.
In the Neon Realm, this principle powers everything from emergency beacons to quantum gate controls. The same concept that makes your smartphone respond to touch, that lets pilots control spacecraft with joysticks, that enables gamers to move characters with button presses. Input becomes output through the magic of programmed logic.
Understanding Digital Input
Buttons are binary creatures. They exist in exactly two states: pressed or not pressed. In digital terms, that's HIGH or LOW, 1 or 0, ON or OFF. There's no "sort of pressed" or "almost pressed." This binary nature makes buttons perfect for digital communication.
When you press a button connected to a microcontroller pin, you're creating a complete electrical circuit. Current flows, voltage rises, and the pin reads HIGH. Release the button, the circuit opens, and the pin drops to LOW. The microcontroller can check this state thousands of times per second, fast enough to catch even the quickest button tap.
But here's the crucial part: the microcontroller doesn't automatically know what to do with that signal. It's just data. The code you write determines whether a button press turns on an LED, plays a sound, sends a message, or launches a nuclear missile. The hardware provides the signal; your program provides the meaning.
Wiring Your Telegraph Interface

This wiring creates two separate circuits: one for input detection and one for output control. Each connection serves a specific electrical purpose.