2

I try to use this ArduinoThread library. In the Arduino I go Sketch->Import Library->ArduinoThread. After that I have the following line in the beginning of the sketch:

#include <ThreadController.h>
#include <Thread.h>
#include <StaticThreadController.h>

I leave setup() and loop() empty and try to verify or upload the sketch on my Arduino board. But I get the following errors: enter image description here

Is this about the library or I do something wrong?

asked Dec 5, 2017 at 7:36
6
  • 2
    How old is your Arduino setup? Maybe stackoverflow.com/questions/24845127/… would help Commented Dec 5, 2017 at 7:53
  • I am using Arduino 1.8.5. I think it is pretty recent, isn't it? Commented Dec 5, 2017 at 8:04
  • It works with 1.6.8 and 1.6.9 those are the ones I have and it compiles without errors. Commented Dec 5, 2017 at 9:15
  • 1
    What do you have selected in the Tools > Board menu? You should always post text as text, not a picture of text. Commented Dec 5, 2017 at 10:22
  • 1
    Please write an answer to your question to help out anyone else who also encounters this issue. Commented Dec 5, 2017 at 14:51

1 Answer 1

3

I installed Arduino IDE in two different ways (only god knows why). The first one was via using of manager apt-get and other was manually via downloading, unzipping and installation through the install.sh file. It seems that on Ubuntu 14.04 the

sudo apt-get install arduino

command provides an installation of an old version of Arduino IDE. So eventually I was launching Arduino IDE by arduino command in my terminal (actually I was using d-menu in i3). No surprise it ran the old one installed by apt-get. I just removed that version by

sudo apt-get remove arduino

And now I am using executable arduino inside unzipped folder. Actually, I am not using Arduino IDE explicitly at all. I am using a Makefile from here.

answered Dec 6, 2017 at 16:34

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.