I followed the example on the Arduino site about how to make your own library, and I can't get the Arduino IDE to recognize the files.
Screenshots:
Libraries folder structure (top bar):
IDE settings for project path:
Error message:
Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"
sketch_apr19a.ino:1:19: fatal error: Morse.h: No such file or directory
compilation terminated.
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
I can't figure out what the problem is, the error says "Can't find Morse.h" but it is right there... I event tried moving "Morse.h" and "Morse.cpp" out of their subfolder, but that didn't work either. Does anyone know what I'm doing wrong here?
On the IDE menu bar, select "Sketch - Include Library". At the bottom of that popup, there should be a "Contributed libraries" section with Morse shown there. Is that correct?
That are the file extentions... I'm not that much of a noob.
If the file extensions are clion10, you really ARE that much of a noob. That means that the file names are Morse.cpp.clion10 and Morse.h.clion10, which readily explains why the compiler can't find Morse.h. It's like looking for a black cat that isn't there at midnight. Impossible to find.
PaulS:
If the file extensions are clion10, you really ARE that much of a noob. That means that the file names are Morse.cpp.clion10 and Morse.h.clion10, which readily explains why the compiler can't find Morse.h. It's like looking for a black cat that isn't there at midnight. Impossible to find.
flaghacker:
The extension is REALLY .h, I have my extensions always visible, and I'm not a double-extension noob.
With all due respect, we get people with assorted skill sets on this forum. Until we ask, we aren't sure. Even a low post count doesn't prove anything, we all had low post counts sometime.