Pages: [1]   Go Down
Author Topic: Morse Library (non-blocking sending), Cyclocomp'r  (Read 3733 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I wrote a Morse library, the key feature of which (to differentiate it from the many others) is that it doesn't block while sending; for example, you can check on a sensor value while a long message is being played on a speaker. On github.

In ultra-brief, you can use it like this:

Code:
#define PIN_STATUS  13
LEDMorseSender sender(PIN_STATUS);
void setup() {
    sender.setup();
    sender.startSending();
}
void loop() {
    // do other work, while you...
    sender.continueSending();
}

I wrote it for use in a cyclocomputer (trip meter, histogram of speeds over a ride) project, also on github.
Logged

Pages: [1]   Go Up
Jump to: