Hello,
I used vMicro before with Arduino projects, with no issues.
Recently I installed ESP32 and I try to compile a pretty basic example (see code below).
The Arduino IDE is installed in 'c:\arduino', this is also configured correctly.
The optional fields in the "IDE locations" are left blank.
The deep search is also enabled.
Bare minimum examples compile fine (i.e.blink).
The advanced blink that I found (uses 'Ticker.h') does not compile, because it cannot resolve the header file.
Like the title indicates I have no problem compiling with Arduino IDE.
When I look at the gcc comand, the path where the libraries are located, is included as an argument (i.e. -I"[path to libraries]" ).
Maybe you can see something that I overlooked?
Thanks.
Kristof
#include <Arduino.h>
#include <Ticker.h>
#define LED_PIN 21
Ticker blinker;
Ticker toggler;
Ticker changer;
float blinkerPace = 0.1;
const float togglePeriod = 5;
void change() {
blinkerPace = 0.5;
}
void blink() {
digitalWrite(LED_PIN, !digitalRead(LED_PIN));
}
void toggle() {
static bool isBlinking = false;
if (isBlinking) {
blinker.detach();
isBlinking = false;
}
else {
blinker.attach(blinkerPace, blink);
isBlinking = true;
}
digitalWrite(LED_PIN, LOW);
}
void setup() {
pinMode(LED_PIN, OUTPUT);
toggler.attach(togglePeriod, toggle);
changer.once(30, change);
}
void loop() {
}