GPIO: LED blinking pattern
GPIO (General Purpose Input/Output) are the general-purpose pins of a microcontroller, through which an LED can be turned on/off or the state of a button can be read. In many devices, the status code is indicated by the long/short flashing pattern of a single LED — this is exactly the same as the logic of Morse code.
Rule: the shortest ON duration — one basic unit T — is a dot (.). An ON three times longer than that is a dash (-). Regarding OFF duration: T is the separator within a character, 3T is between letters, 7T is between words.
The attached gpio_log.csv file records the ON/OFF states of the GPIO pin over time and the duration (ms) of each state. First, find the smallest ON value to determine T, then convert the entire sequence into Morse code, and then into text.
| Letter | Morse | Letter | Morse |
|---|---|---|---|
A | .- | N | -. |
D | -.. | O | --- |
E | . | S | ... |
G | --. | U | ..- |
I | .. | V | ...- |
L | .-.. | Y | -.-- |
Connect the found two or three-word phrase with underscores and assemble the flag in this format: BAYROQ{HW_GPIO_<SOZ1>_<SOZ2>_<SOZ3>}