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....)
1 out of 3
Suggested Topics
-
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39 -
3 Switch Pins but 1 Not Updating Vera
Development • 8 Sept 2015, 03:18 • smokey1300 14 Sept 2015, 01:56 -
Multiple interuppts: One Arduino with two door sensors?
Development • 8 Jan 2015, 14:43 • algoritm 25 Jan 2015, 00:29 -
Node with Interrupt, sleep and batteries
Troubleshooting • 22 Nov 2015, 19:56 • sundberg84 23 Nov 2015, 18:42 -
Using more then 2 interrups on arduino
Troubleshooting • 8 Apr 2015, 19:03 • berbee 14 Apr 2015, 20:15 -
Custom Interrupt routine for door sensor
Development • 11 Jan 2015, 16:27 • funksoulbrother 11 Jan 2015, 22:00 -
Motion & Relay Sensor issue
Troubleshooting • 27 Mar 2015, 19:15 • kunall 3 Oct 2015, 11:50