January 2015
Beginner
324 pages
7h 42m
English
Declaring interfaces is important, but it’s as important to implement them. Create a new tab and enter the filename telegraph.cpp.
This is the right place to explain why we’ve used TelegraphLibrary and not Telegraph as the sketch’ name, even though it’d be a more natural choice. The reason is that the Arduino IDE turns every sketch (ending with .ino) into a C++ file (ending with .cpp). For a sketch named Telegraph.ino it generates a C++ file named Telegraph.cpp. In a case-insensitive file system, this conflicts with a file named telegraph.cpp, and it leads to some strange error messages.
Enter the following code now in the newly created tab:
| TelegraphLibrary/telegraph.cpp | |
| | #include <ctype.h> ... |
Read now
Unlock full access