Nodemcu pulse decoding
Posted: Mon Apr 13, 2015 9:32 am
Will it be possible to decode 200/400/600 uSec pulses using the Nodemcu gpio trigger event framework? Even while serving TCP connection as well?
For example, Handler pseudocode
Thanks!
John
For example, Handler pseudocode
Code: Select all
pwidth = now - last
If pwidth > 500
STATE= header
If pwidth < 300 (microseconds)
bits[bitno++] = 1
else ( pwidth is between 300 and 500 )
bits[bitno++] = 0
If bitno >= 76
STATE = done
Thanks!
John