Skip to content

Python library to send and receive morse codes on Raspberry Pi

License

Notifications You must be signed in to change notification settings

ritiek/morseplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python library to send and receive morse codes on Raspberry Pi

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages