Hey Arduino Team,
got to be a pain in someones butt.
But, can someone from the original team redo the tutorial on Creating A Library - Morse Code example?
--> http://arduino.cc/en/Hacking/LibraryTutorial
Have tried it, got errors that are already mentioned.
Morse/Morse.cpp.o: In function Morse::Morse(int)':** **/Documents/SketchArduino/libraries/Morse/Morse.cpp:10: multiple definition of
Morse::dash()'
Morse.cpp.o:Morse.cpp:10: first defined here
Morse/Morse.cpp.o: In function Morse::Morse(int)':** **/Documents/SketchArduino/libraries/Morse/Morse.cpp:10: multiple definition of
Morse::dot()'
Morse.cpp.o:Morse.cpp:10: first defined here
Morse/Morse.cpp.o: In function Morse::Morse(int)':** **/Documents/SketchArduino/libraries/Morse/Morse.cpp:10: multiple definition of
Morse::Morse(int)'
Morse.cpp.o:Morse.cpp:10: first defined here
Morse/Morse.cpp.o: In function Morse::Morse(int)':** **/Documents/SketchArduino/libraries/Morse/Morse.cpp:10: multiple definition of
Morse::Morse(int)'
Morse.cpp.o:Morse.cpp:10: first defined here
Have looked for problem solving, but couldn't find anything.
Even downloaded the zip-file, even that failed.
It's a old thing tutorial, but still, for newbies somewhat vital.
I got that we needed to change from
#include "WProgram.h"
to
#include <Arduino.h>
well, any case, in the attachments are the complete files.
It may be old, but still.
Thanks in advance
morse_code.ino.ino (215 Bytes)
Morse.cpp (458 Bytes)
Morse.h (354 Bytes)
keywords.txt (42 Bytes)