using 2 interrupt pins (2,3) inside a node.
-
Hi
I have a sensor that in some cases can raise 2 interrupt pins on the sensor one for each case.
I see when I'm going to sleep I can only attach one interrupt pin to sleeping mode:bool sleep(int interrupt, int mode, unsigned long ms=0);
can I attach 2 separate arduino pins (2,3) to the 2 separate sensor pins and get out from sleep with either one of them?
thanks.
-
Have you tried the other sleep function?
https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MySensor.h#L244
-
ooouuu sorry missed that....(you really thought on everything with this library....)
3 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Custom Interrupt routine for door sensor
Development • 11 Jan 2015, 16:27 • funksoulbrother 11 Jan 2015, 22:00 -
Node with Interrupt, sleep and batteries
Troubleshooting • 22 Nov 2015, 19:56 • sundberg84 23 Nov 2015, 18:42 -
Using Pin Change Interrupt (PCINT) for wakeup
Development • 3 Feb 2015, 11:55 • Dirk_H 11 Apr 2015, 18:37 -
Motion & Relay Sensor issue
Troubleshooting • 27 Mar 2015, 19:15 • kunall 3 Oct 2015, 11:50 -
Using more then 2 interrups on arduino
Troubleshooting • 8 Apr 2015, 19:03 • berbee 14 Apr 2015, 20:15