"LeoMorse" Morse Code project for the LeoStick

We keep or move all the cool LeoStick demos, fun stuff, example code and sketches here...
Post Reply
User avatar
Freetronics Staff
Freetronics Staff
Joined:Sat Oct 15, 2011 11:31 am
Location:Melbourne, Australia
"LeoMorse" Morse Code project for the LeoStick

Post by jonoxer » Sun Feb 05, 2012 6:05 am

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:


Joined:Tue Nov 01, 2011 10:14 am

Re: "LeoMorse" Morse Code project for the LeoStick

Post by LukeW » Sun Feb 05, 2012 6:15 am

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.


Post Reply