Socket
Socket
Sign inDemoInstall

tessel-morse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tessel-morse

Communicate in Morse code using your Tessel


Version published
Maintainers
1
Created
Source

tessel-morse

Communicate in Morse code using your Tessel

Installation

npm install tessel-morse

Usage

Run the following script on your tessel:

var morseBlink = require('tessel-morse');
var str = morseBlink('hello world');
console.log(str); // .... . .-.. .-.. --- ....... .-- --- .-. .-.. -..

Look at your Tessel! It should be blinking :)

See it in action here.

Options

All options are passed via the second options parameter.

Duration: options.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 = require('tessel-morse');
morseBlink('hello world', { duration: 100 }); // dot duration now 100ms

LED: options.led

You can specify the led to blink by index. By default, tessel.led[0] (green led) is used.

var morseBlink = require('tessel-morse');
morseBlink('hello world', { led: 1 }); // blink blue led instead

Contributing

Simply create an issue or send a pull request! :)

License

MIT

Keywords

FAQs

Package last updated on 14 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc