EasyManua.ls Logo

Arduino Pro Mini

Arduino Pro Mini
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
public:
void output_symbol(const int length) {
// ...
}
};
class Speaker : public OutputDevice {
public:
void output_symbol(const int length) {
// ...
}
};
You can then use these classes as follows:
Led led;
Speaker speaker;
OutputDevice* led_device = &led;
OutputDevice* speaker_device = &speaker;
led_device->output_symbol(200);
speaker_device->output_symbol(200);
The rest is up to you.
Try to learn Morse code. Let someone else type some messages into the
serial terminal and try to recognize what that person sent. This isnt
necessary for learning Arduino development, but its a lot of fun!
report erratum discuss
Exercises 75
www.it-ebooks.info

Table of Contents

Related product manuals