I've found that interrupts do not work on my M0 and MKR1000. After some investigation I found that we can't call attachInterrupt() before setup() on MKR1000. Here is my fix. I tested this patch on my MKR1000.
This fix includes addition of new public method 'begin()'. This method is supposed to be called in the setup() by user though it will be called in read() implicitly.
I've found that interrupts do not work on my M0 and MKR1000. After some investigation I found that we can't call attachInterrupt() before setup() on MKR1000. Here is my fix. I tested this patch on my MKR1000.
This fix includes addition of new public method 'begin()'. This method is supposed to be called in the setup() by user though it will be called in read() implicitly.