Page 3 of 3

Re: Pulse Counting and sleeping

Posted: Wed Sep 25, 2019 10:04 am
by WiFive
Basically this

Code: Select all

io_status = (RTC_GPIO_IN_REG >> io_number) & 1
if( (next_edge == 0 && io_status == 0) || (next_edge == 1 && io_status == 1) )
  goto changed