box-o-sand/oldstuff/arduino/msaqsg/ch04/Telegraph/telegraph.h
2015-06-22 13:15:42 -05:00

19 lines
375 B
C++

#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