Page 1 of 1

"LeoMorse" Morse Code project for the LeoStick

Posted: Sun Feb 05, 2012 6:05 am
by jonoxer
One of the first quick projects for the LeoStick shown off at linux.conf.au 2012 was @LukeW's "LeoMorse" sketch. Because the PWM timer is currently broken on D11 on Leonardo-compatible boards, making tones on the Piezo speaker isn't quite as easy as using the tone() function. Luke got around that with some clever timing using delayMicroseconds.

The project is really simple to use: just load the sketch onto your LeoStick, open a serial console at 38400 bps, and type in some text. The LeoStick will output the message as Morse on the piezo speaker.

Check it out:

https://github.com/lukeweston/LeoMorse

Re: "LeoMorse" Morse Code project for the LeoStick

Posted: Sun Feb 05, 2012 6:15 am
by LukeW
Andrew Fisher also wrote a little bit of Python as a companion for this... run this on your PC and it pulls tweets down off Twitter, which have any particular hashtag, and passes them through to the serial port for the LeoStick etc. to output them.

https://gist.github.com/1615256