I’m trying to call os_delay_us
from the esp8266 sdk. However, I’m getting the following error:
lib/PCA9685Lib/PCA9685Lib.cpp: In member function 'uint8_t PCA9685::setSleep(bool)':
lib/PCA9685Lib/PCA9685Lib.cpp:39:24: error: 'ets_delay_us' was not declared in this scope
os_delay_us(600);
^
*** [.pioenvs/esp12e/lib/PCA9685Lib/PCA9685Lib.o] Error 1
It apparently is finding the header file “osapi.h” fine, because that is there os_delay_us
is defined as ets_delay_us
. However, it is missing the .ld file that has the location of that system call.
How do I fix this?