-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with ESP32 #30
Comments
Can you please check Also, please post the code here so we can understand better. (Luckily, yesterday I was using a ESP32... but did not use it with ArduinoThread) |
The code is here: You can reproduce the problem easily:
and EnhancedThread.h
Select the Wemos LOLIN32 or ESP32 Devboard as device. Known workarounds: Copy the ArduinoThread lib into the projects folder or combine the h+cpp file into one file. Use Arduino / ESP8266 and it works fine. |
Try including Thread.h and ThreadController.h in your main file. That
shouls work
…On Mon, Apr 30, 2018, 3:58 PM SciLor ***@***.***> wrote:
The code is here:
https://github.com/SciLor/ESP8266_Hyperion_LED-Controller/blob/develop/HyperionRGB/EnhancedThread.h
You can reproduce the problem easily:
Create a new Arduino Sketch.
Create an *EnhancedThread.cpp* with:
#include "EnhancedThread.h"
void EnhancedThread::run() {
Thread::run();
}
and *EnhancedThread.h*
#include <Thread.h>
class EnhancedThread : public Thread {
public:
void
run(void);
};
Select the Wemos LOLIN32 or ESP32 Devboard as device.
Compile - error
Known workarounds: Copy the ArduinoThread lib into the projects folder or
combine the h+cpp file into one file.
Use Arduino / ESP8266 and it works fine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC9Vr21Ckyd0hB-7vSUTdN4_4bttTB_Yks5tt17dgaJpZM4RVsA1>
.
|
I have added #include <Thread.h> in the other 2 files without success. The error stays the same. |
I'm testing this lib with a standard ESP32 and Visual Code. It works fine. |
I am using the Arduino Software |
This example is not working for you ? |
I'm using this library with ESP32 without any problem. For nodemcu and wimos. |
The library seems not to work on the ESP32.
Boards: https://github.com/espressif/arduino-esp32
I always get "error: 'Thread' has not been declared"
Using the ESP8266 boards it works fine
The text was updated successfully, but these errors were encountered: