← Back

ofxMorse

github.com/madc/ofxMorse · @madc
OF 0.8 Utilities

En- & decoding of morse code for openFrameworks

3 1 Last commit 13y ago Created 13y ago

Forks

Forks pushed to more recently than madc/ofxMorse itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

icq4ever/ofxMorse by @icq4ever · ★ 0 · pushed 8y ago

README

ofxMorse

ofxMorse is an addon for openFrameworks by Matthias Esterl. The original code was written in C for Arduino and can be found in this GIST. Both versions (oF and Arduino) are fully compatible. To meet the official standards for morse code, ofxMorse has been build after the specs, that can be found on the Wikipedia page on Morse code. All available characters are defined in src/ofxMorse.cpp.

Usage



~~~~ ofxMorse Morse; string myWord = "I have two guns, one for each of ya."; string encodedString = Morse.encode( myWord ); //Output: .. .... .- ...- . - .-- --- --. ..- -. ... --..-- --- -. . ..-. --- .-. . .- -.-. .... --- ..-. -.-- .- .-.-.- string decodedString = Morse.decode( encodedString ); //Output: I HAVE TWO GUNS, ONE FOR EACH OF YA. ~~~~

See example-basic/ for further infos.

License

ofxMorse is available under the MIT License. https://en.wikipedia.org/wiki/Mit_license

Get this addon

HTTPS
SSH