NRF52 GPIOTE with 2 inputs
-
Re: nRF5 action!
I'm trying to modify @Nca78 GPIOTE example for the NRF51 for use on the nrf52 motion sensor I made with an optional reed/switch input for monitoring the door and motion in a bedroom.
I've gotten it to work on the NRF52 well enough and I can get an update when I close or open the reed OR motion sensor but I don't know how to separate them so I know WHICH one of the two triggered. I've tried for the past week but the nrf functions inside of arduino confuse me and I can't say i understand the NRF stuff all that well anyway.
@Nca78 could you please help? Based on the script you've already written I'm guessing it would take very little modification but I don't know what I'm doing
-
It's post 1515 in nrf action
https://forum.mysensors.org/topic/6961/nrf5-action/1515In particular I download the zip file from post 1543
https://forum.mysensors.org/topic/6961/nrf5-action/1543#
-
@waspie why do you want to use this script with NRf52 ?
GPIOTE is useful with nrf51 only because it has a hardware bug that makes it use 100uA with "normal" interrupt.
With NRF52 the sleep code from MySensors should run fine.
-
@nca78 If you're talking about the basic motion sketch - I've tried it and it doesn't work
The node checks in when initially powered but i can't seem to trigger it...