basepr1me / Raspberry-Pi-Pico-Morse-Code

A morse code library for the Raspberry Pi Pico

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Pi Pico Morse Code

Raspberry Pi Pico Morse Code Library

This Morse Code library allows the programmer to generate Morse Code via a GPIO pin.

Usage

Clone the library to your project:

	git clone https://github.com/basepr1me/Raspberry-Pi-Morse-Code.git

Three class instantiation methods are in place:

	Morse(TYPE, PIN, TX_PAUSE);
	Morse(TYPE, PIN, TX_PAUSE, WPM);
	Morse(TYPE, PIN, TX_PAUSE, WPM, FREQ);

Types available are:

	M_GPIO	// GPIO Pin Type
	M_DAC	// PWM Output

Pro-sign Morse Code can be generated using backticks:

	cont char *led_morse = "Hello giant world `ar`";

To set the WPM, two functions are available:

	gpio_set_wpm(WPM);
	dac_set_wpm(WPM);

Example

See the Morse Example file for more information.

Notes

The make.sh file is designed for OpenBSD ksh.

Author

Tracey Emery

If you like this software, consider donating.

See the License file for more information.

About

A morse code library for the Raspberry Pi Pico

License:BSD 2-Clause "Simplified" License


Languages

Language:C++ 94.7%Language:CMake 2.9%Language:Shell 2.4%