Skip to content

Instantly share code, notes, and snippets.

@profburke
profburke / blinkingmorse.lua
Last active August 29, 2015 14:05
Overriding the default signaling functions in the Morse module. The message is flashed out by a blink(1) device I have attached to my laptop.
morse = require 'morse'
blink = require 'blink'
d = blink.open()
dotLength = 100 -- milllis
morse.setDotGenerator(function()
d:blue()
blink.sleep(dotLength)