Morse code generation library for Rust

License: MIT

Features

There are currently no plans to support decoding of Morse code.

Example

```rust fn waitfor(duration: u8) { // ... } fn beepfor(duration: u8) { // ... }

for action in smallmorse::encode("Hello in morse code!") { if action.state == smallmorse::State::On { beepfor(action.duration); } else { waitfor(action.duration); } } ```

Intended use

The natural extension to your simple embedded project of blinking an LED is to blink it in morse code. The goal of this library is to make it easy to emit morse code from any environment, and with any type of output.