1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/content/projects/morse-code-decoder.md

20 lines
1.1 KiB
Markdown
Raw Normal View History

2016-10-14 17:58:10 +01:00
---
2016-05-27 23:17:11 +01:00
title: Morse code decoder
template: projects
slug: morese-code-decoder
repo: https://gist.github.com/RealOrangeOne/6dc94875c93b787e5834
2016-07-29 13:57:02 +01:00
summary: A JSON file to help decode morse-code
2016-10-14 17:58:10 +01:00
---
2016-05-27 23:17:11 +01:00
2017-02-04 21:42:45 +00:00
It's not often people need to decode text into morse code (and visa-versa), but if I had something like this when I needed to, it would have saved me hours of time!
2016-05-27 23:17:11 +01:00
2017-02-04 21:42:45 +00:00
I originally needed this for the [Student Robotics 2015](/robotics/2015/) entry, to convert a string message into morse code that would be transmitted using LEDs, for aesthetics and debugging. Unfortunately due to a fixed time frame, this idea was scraped before it could be fully implemented. However, the decoder worked perfectly!
2016-05-27 23:17:11 +01:00
## Usage
2017-02-04 21:42:45 +00:00
In order to make it accessible for as many people in as many different languages as possible, I converted our code from python to JSON. Just find a JSON library for your desired language, and it'll work perfectly!
2016-05-27 23:17:11 +01:00
2017-02-04 21:42:45 +00:00
The source of the library is on GitHub as a gist. I recommend downloading the file to use yourself, however for testing you can use GitHub's raw file as a hotlink.
2016-05-27 23:17:11 +01:00
<script src="https://gist.github.com/RealOrangeOne/6dc94875c93b787e5834.js"></script>