You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
375 B
19 lines
375 B
11 years ago
|
#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
|