tessel-morse
Communicate in Morse code using your Tessel
Installation
npm install tessel-morse
Usage
Run the following script on your tessel:
var morseBlink = ;var str = ;console; // .... . .-.. .-.. --- ....... .-- --- .-. .-.. -..
Look at your Tessel! It should be blinking :)
Options
All options are passed via the second options
parameter.
options.duration
Duration: You can specify the duration of a dot (in ms). All other durations (for dash, space) are made relative to this duration automatically.
Default dot duration is 200.
var morseBlink = ;; // dot duration now 100ms
options.led
LED: You can specify the led to blink by index.
By default, tessel.led[0]
(green led) is used.
var morseBlink = ;; // blink blue led instead
Contributing
Simply create an issue or send a pull request! :)
License
MIT