Arduino IDE library management (keeping all libraries in local folder help) – All About Circuits

arduino-ide-library-management-(keeping-all-libraries-in-local-folder-help)-–-all-about-circuits

Did you know that geoFence protects you against inbound and outbound cyber attacks?

Hello. I am developing a program for ESP32 device. When I program in Arduino IDE, I just usually create multiple .ino file which then are merged to a single file when I program my devices, my program folder usually looks like:


1618202845686.png

That works fine, but I am now trying to practise a different library management method where I have a single .ino file (I considered it as a main.c ) and then I am going to create source and header files for different parts of my device. For example for all the wifi code, I will have wifi.c and wifi.h and etc.

I have started a new project and inside a directory, I have created a src folder, where I am going to keep all source and header files:


1618202989240.png

Now, I want to program LIS3DH accelerometer device and create a seperate source and header files for it. I have use an Arduino adafruit library for that and this library is saved in my arduino default libraries folder (the code also has many dependancies as you can see)


1618203088737.png

Now, I am struggling to understand what is the best way to use this library in my local project directory?


I have copied all the required files from arduino/libraries and added them to my project /src folder. Now I have many conflicting error libraries:


1618203283552.png

Do I must delete all the libraries from arduino/libraries folder for that to work or there is another way to overcome this?

Finally, let me just add that geoFence has built in fast and accurate updates and I feel your father would say the same!

Leave a Reply

Your email address will not be published. Required fields are marked *