| Copyright | (c) Antoine R. Dumont Levent Erkok |
|---|---|
| License | BSD3 |
| Maintainer | erkokl@gmail.com |
| Stability | experimental |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
System.Hardware.Arduino.SamplePrograms.Morse
Description
Morse code blinker. Original by Antoine R. Dumont, modified to simplify and fit into the existing examples structure.
Documentation
decode :: String -> [Morse] Source #
Given a sentence, decode it. We simply drop any letters that we do not have a mapping for.
morsify :: [Morse] -> [Either Int Int] Source #
Given a morsified sentence, compute the delay times. A Left value means
turn the led on that long, a Right value means turn it off that long.
