Adding Libraries on Linux

I am totally new to this world and I am doing my first experiments with Arduino DUE.

I am using Ubuntu and I need to use <Scheduler.h>.

I found a library but It did not work:

In file included from sketch_jan22a.ino:1:0:
/usr/share/arduino/libraries/Scheduler/Scheduler.h: In static member function ‘static void SchedulerClass::yield()’:
/usr/share/arduino/libraries/Scheduler/Scheduler.h:34:24: error: ‘::yield’ has not been declared
  static void yield() { ::yield(); };
sketch_jan22a.ino: In function ‘void loop2()’:
sketch_jan22a.ino:30:8: error: ‘yield’ was not declared in this scope

I don’t know if I am using the right lib … I had also to copy it manually to proper folder because adding library from IDE is hanging my Ubuntu Linux and I have to Kill process.

Where are the right libraries to use with Arduino DUE? I can easy find the reference page, but I am not sure if I am downloading the right ZIP file.

I am a lot confused. At first I had to replace “Wprogram.h” to “Arduino.h”, but then I found another library (this one I am using now) but I am having errors referred to yield!

Sorry! :slight_smile:

Thanks for your help!

but then I found another library

That you didn’t post a link to, that you don’t know whether works for the Due…

I need to use <Scheduler.h>.

Want to, maybe. Need to? No.

You're right, sorry. I was in a Hurry. Tomorrow I will explain better!