box-o-sand/oldstuff/arduino/msaqsg/ch04/Telegraph/telegraph.h

19 lines
375 B
C
Raw Normal View History

#ifndef __TELEGRAPH_H__
#define __TELEGRAPH_H__
class Telegraph {
public:
Telegraph(const int output_pin, const int dit_length);
void send_message(const char* message);
private:
void dit();
void dah();
void output_code(const char* code);
void output_symbol(const int length);
int _output_pin;
int _dit_length;
int _dah_length;
};
#endif