Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjaminlukeclark/pimorsecodeleds
Python program that, when given a string, will communicate this in morse code via a chosen LED interface on a Raspberry PI
https://github.com/benjaminlukeclark/pimorsecodeleds
led morse-code python raspberry-pi
Last synced: 6 days ago
JSON representation
Python program that, when given a string, will communicate this in morse code via a chosen LED interface on a Raspberry PI
- Host: GitHub
- URL: https://github.com/benjaminlukeclark/pimorsecodeleds
- Owner: benjaminlukeclark
- License: gpl-3.0
- Created: 2021-04-01T17:29:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-01T19:55:15.000Z (almost 4 years ago)
- Last Synced: 2024-11-09T19:45:02.962Z (2 months ago)
- Topics: led, morse-code, python, raspberry-pi
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# piMorseCodeLEDs
Made to translate strings to morse code, then communicate these via LEDs on a keyboard (provided it's hooked up to a raspberry pi)Made whilst studying [TM129](http://www.open.ac.uk/courses/modules/tm129) for no other reason than I thought it'd be neat to do and help me a little with some lower-level conceptual understanding.
```bash
pi@raspberry:~ $ python3 piMorseCodeLEDs/main.py --help
----------------------------------------------------------------------------------------------------
Python script for Raspberry Pi to communicate strings via keyboard LEDsBy Sudoblark (https://github.com/sudoblark)
Strings are first translated to morse code then communication in dot-dash notation via a chosen LED
Accepted args:
--help shows this message--led %ARG% sets led to use, admissible input is: scrollLock, capsLock, numLock
--message %ARG% determines message to encode and sent
Example
python3 main.py --led capsLock --message SOS
python3 main.py --led capsLock --message 'Hello World'----------------------------------------------------------------------------------------------------
```# install
1. Clone to a Raspberry Pi
```bash
git clone https://github.com/sudoblark/piMorseCodeLEDs
```
2. Run help if you're stuck
```bash
git clone https://github.com/sudoblark/piMorseCodeLEDs
```3. Run script in sudo to do some morse code translation
_Note_: Requires sudo to access /sys/class/leds as explained [here](https://www.kernel.org/doc/html/latest/leds/leds-class.html)
```bash
pi@raspberry:~ $ sudo python3 piMorseCodeLEDs/main.py --led capsLock --message 'Hello World'
----------------------------------------------------------------------------------------------------
Python script for Raspberry Pi to communicate strings via keyboard LEDsBy Sudoblark (https://github.com/sudoblark)
Message: Hello World | LED: capsLock
----------------------------------------------------------------------------------------------------
```