Cannot include custom libraries

I am not able to include two custom libraries that I have added to the web editor. I am uploading the ZIP file and each zip does include a library.properties file.

The INCLUDE button that is usually a dark green is "greyed out".

Hi @meehollak. The "INCLUDE" button is only a convenience feature that inserts an #include directive directive for the library's primary header files in the sketch. You can accomplish the exact same thing by adding the #include directive to your sketch code manually.

I'll provide instructions you can follow to do that:

"ZMPT101B" Library

When you want to use this library in a sketch, add the following line at the top of the sketch:

#include <ZMPT101B.h>

"Seeed Arduino FreeRTOS" Library

When you want to use this library in a sketch, add the following line at the top of the sketch:

#include <Seeed_Arduino_FreeRTOS.h>

I have submitted a formal report to the Arduino Cloud developers about the potentially poor user experience that might be caused by the current design of disabling this button for custom libraries.

Thank you so much!

I spent quite a bit of time trying to figure out what I was doing.

Cheers!

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

Hello again @meehollak. I have an update to share about this:

The developers have added a tooltip to the button that communicates the situation to the user:

image

Hahahaha I suppose that’s one way to “fix” it! :wink:

Regardless of functionality, at least it is clearer now.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.