applications/{audioutils,examples}: Morse player#3653
Merged
Conversation
This commit adds the Morsey library (Apache 2.0 licensed) to be downloaded from an external repository so it can be used in NuttX applications. This library parses ASCII text into Morse code marks to be played by a user-implemented 'transmit' function (i.e. over an LED, buzzer, audio sink, etc.). Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
Adds an example application leveraging the Morsey library for transmitting Morse code, either to the console (debug) or to GPIO devices for now as the two supported sinks. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
linguini1
requested review from
acassis,
cederom,
jerpelea,
michallenc,
raiden00pl,
simbit18 and
xiaoxiang781216
July 21, 2026 01:18
xiaoxiang781216
approved these changes
Jul 21, 2026
jerpelea
approved these changes
Jul 21, 2026
acassis
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I wrote a Morse code library based on the structure used by
rtttl-candincluded it into the NuttX build systems as a library.
Then, I created a command-line application that plays a user string as Morse
code, either to the console or over a GPIO device (for now, more devices can be
added later).
There is a twin PR to the kernel with documentation and
sim:txmorseconfig: apache/nuttx#19493Here are the commits:
examples/txmorse: Example application for transmitting Morse code
Adds an example application leveraging the Morsey library for
transmitting Morse code, either to the console (debug) or to GPIO
devices for now as the two supported sinks.
audioutils/morsey: Add the Morsey library
This commit adds the Morsey library (Apache 2.0 licensed) to be
downloaded from an external repository so it can be used in NuttX
applications.
This library parses ASCII text into Morse code marks to be played by a
user-implemented 'transmit' function (i.e. over an LED, buzzer, audio
sink, etc.).
Impact
Morse code can be transmitted easily on NuttX.
Testing
Tested the application and library by transmitting to the console. I also put
the application on my Peanut Altimeter
and had it play Morse code over the buzzer. I confirm that it sounds correct,
translation works and that the transmission speed configuration works.