I just installed Arduino on a Raspberry Pi 4 and it's blistering fast compared to my windows machine. However when I try to use custom libraries, especially ones that use hyphens and underscores in their names, I'm having trouble. Note that I've been playing with Arduino for 8-9 years and 5-6 years with Raspberry Pi. So I'm familiar with installing libraries.
I've discovered that a lot the libraries that I've used on my windows machine don't work on the Pi. I get errors about non ascii characters like underscores and hyphens. The library I'm trying to get working now is FadeLed.h
Note that when you download this library it's named FadeLed-master.zip . I read somewhere if you get rid of the hyphen before installing the library it should resolve any issues. Not for me... I've installed and reinstalled the library to no avail.
After I install and restart the IDE I see the library listed as well as it's examples. When I try to compile one of the examples I get the following error
Code: Select all
/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard /tmp/build12629863923838850473.tmp/ConstantSpeed.cpp -o /tmp/build12629863923838850473.tmp/ConstantSpeed.cpp.o ConstantSpeed.ino:27:21: fatal error: FadeLed.h: No such file or directory compilation terminated.
So it seems like the IDE is finding the library but the compiler is not. Perhaps there is a reference to the original zip file name "FadeLed-master.zip" somewhere in the library itself?
How can I get this library working?