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?
-
2How old is your Arduino setup? Maybe stackoverflow.com/questions/24845127/… would helpDave X– Dave X2017年12月05日 07:53:25 +00:00Commented Dec 5, 2017 at 7:53
-
I am using Arduino 1.8.5. I think it is pretty recent, isn't it?LRDPRDX– LRDPRDX2017年12月05日 08:04:24 +00:00Commented 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.atland– atland2017年12月05日 09:15:27 +00:00Commented Dec 5, 2017 at 9:15
-
1What do you have selected in the Tools > Board menu? You should always post text as text, not a picture of text.per1234– per12342017年12月05日 10:22:50 +00:00Commented Dec 5, 2017 at 10:22
-
1Please write an answer to your question to help out anyone else who also encounters this issue.per1234– per12342017年12月05日 14:51:01 +00:00Commented Dec 5, 2017 at 14:51
1 Answer 1
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.