Not sure when this stopped working, but when I try to include the SI1145 external component, I get this compilation error:
src/esphome/components/si1145/si1145.cpp: In member function 'virtual void esphome::si1145::SI1145Component::update()':
src/esphome/components/si1145/si1145.cpp:108:11: error: 'delay' was not declared
in this scope
delay(20);
^
src/esphome/components/si1145/si1145.cpp: In member function 'void esphome::si1145::SI1145Component::reset_()':
src/esphome/components/si1145/si1145.cpp:320:11: error: 'delay' was not declared in this scope
delay(10);
^
Adding an #import "Arduino.h" to si1145.cpp fixes the problem.
Not sure when this stopped working, but when I try to include the SI1145 external component, I get this compilation error:
Adding an
#import "Arduino.h"tosi1145.cppfixes the problem.