I have tried to create a library by following https://www.arduino.cc/en/Hacking/LibraryTutorial , but my library with my names in a directory is deemed by the compiler to be invalid with a Missing 'name'.
Currently the library does nothing it is just the morse library from the tutorial hacked with different names. I would like to be able to load it before I go any further.
My library sits in the Arduino/library directory has a cpp and a h file and a library.properties file
mybuttons.ino is a test program that compiles and runs without error
when my lib is referenced with #include <btnlib.h>
I get compiler error
Invalid library found in C:\Program Files (x86)\Arduino\libraries\btnlib: Missing 'name' from library
The problem is the encoding settings of the text editor you used on the library.properties file. It's in UTF-8-BOM encoding which causes that warning. You need to change it to UTF-8. If that's not possible with the editor you're using then you need to find an editor suitable for programming.
I guess I am rather surprised that it compiled anyway
Thanks very much, again!
Latest resolution
I had copied another library.property over to fix earlier issues and then failed to change the name when editing it. So the file was now utf-8 but it had the wrong name for the library, so the library was presumably listed, just not as the name I expected. grrrr silly me