"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
jonoxer
Freetronics Staff
Freetronics Staff
Posts: 297
Joined: Sat Oct 15, 2011 11:31 am

"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:

https://github.com/lukeweston/LeoMorse

LukeW
Posts: 91
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.

https://gist.github.com/1615256

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest