7

I've got a raspberry pi and arduino connected over serial port. Everything works, except the Arduino IDE does not have an 'import library' section for adding new libraries.

I can only import libraries that come with the IDE. I want to add more libraries to Arduino IDE on the pi and wanted to know where the libraries folder could be found.

So far I haven't found it anywhere.

Anyone got any experience with it?

Another heads up, running raspbian wheezy.

2
  • documents (or the linux equivalent)/arduino/libraries? Not sure if you've looked there already. Taken from the guide here: arduino.cc/en/Guide/Libraries Commented Jul 29, 2013 at 17:35
  • Thats the issue, I have not been able to find a documents equivalent on raspbian yet. The 'add libraries' option doesn't exist Commented Jul 29, 2013 at 17:41

1 Answer 1

14

you can add your libraries in

/usr/share/arduino/libraries/

then just include them with the include statement

#include <myAwesomeLib.h>

Hope it helps! :)

Sign up to request clarification or add additional context in comments.

1 Comment

This is a protected folder and requires admin privileges to add files. I have to launch file explorer in sudo mode using sudo pcmanfm in terminal to be able to drag the library in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.