Skip to main content

morseplay

PyPi Build Status

morseplay is a python library to send and receive morse codes on Raspberry Pi.

Installation & Usage

$ pip install morseplay

or if you like to live on the bleeding edge:

$ python setup.py install

Check out these examples to learn how to use morseplay:

>>> import morseplay
>>> import RPi.GPIO as GPIO
# Let's try sending morse signals from an LED
>>> LED = morseplay.OutputMorse(outpin=17, setmode=GPIO.BCM, delay_unit=0.3)
# This will signal "hello" in morse from LED attached to pin 17
>>> LED.send("hello")
# You can also run the signal in background by returning a Thread instance
>>> signal = LED.send("hello", threaded=True)
>>> signal.start()
# Output custom morse code
>>> LED.send("-.--   ---", morse=True)
# Note that letters are separated by 3 spaces and words are separated
# by 7 spaces

Contributing

Bug reports, feature requests and even documentation improvements are most welcome!

License

License

Release files for morseplay 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for morseplay 0.1.1
File Interpreter ABI Platform
morseplay-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / morseplay-0.1.1-py2.py3-none-any.whl

Download URL morseplay-0.1.1-py2.py3-none-any.whl
Size 2.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b0276b11cdc4393f91b70e2223ddca9d3d307c16f9ed05572849d860d803f920
BLAKE2b-256 checksum
How to use checksums
a45d8abc8451a972fdcf7f5cd5c437d2b5739b8f44e21fd77a226651f64a25e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.1.2

1 release file

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page