Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By mrburnette
#52844 You may wish to consult this article on ESP8266 Interrupts:
http://www.switchdoc.com/2015/10/iot-esp8266-timer-tutorial-arduino-ide/

My assumption is that you want to measure wind speed by building an interrupt driven counter. Paul's FreqMeasurement lib may be a bit of an overkill, IMO.

Keep in mind that the Arduino code runs in a slice of the uC time... the RF/protocol/housekeeping routines get called with each iteration of loop{} OR when you do yield() or delay(0) but the native code needs to be dormant less than 50mS before the Arduino code is interrupted.

Ray