This is a simple class written to flash out morse code. It can be used to flash out data from the terminal or from a buffer
main.cpp
- Committer:
- mr63
- Date:
- 2013-09-18
- Revision:
- 0:c3c4f0cd78cd
File content as of revision 0:c3c4f0cd78cd:
#include "MorseCode.h" Serial pc(USBTX,USBRX); MorseCode MC(LED1); unsigned char buffer[] = {"Nothing Like Morse Code"}; int main() { unsigned char pcinput = 0; bool Printable = false; MC.set_unit(.05); MC.blink_buffer (buffer); while(1) //Do what ever is between these brackets forever or until the micro is reset. { pcinput = pc.getc(); Printable=MC.Print_ASCII_Char(pcinput); pc.putc(pcinput); } }