Pulse Counting and sleeping

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Pulse Counting and sleeping

Postby WiFive » Wed Sep 25, 2019 10:04 am

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

Who is online

Users browsing this forum: No registered users and 99 guests