Encoder icon indicating copy to clipboard operation
Encoder copied to clipboard

Fix Zero and MKR1000 interrupts

Open hanyazou opened this issue 9 years ago • 1 comments

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.

hanyazou avatar Sep 10 '16 14:09 hanyazou

Related to #77; this solved my issue with the XIAO, thanks @hanyazou

ezhik1 avatar Feb 25 '22 07:02 ezhik1