You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For several days I have been struggling with an ATTiny3216 to understand why in standby, when I use attachInterrupt I have 200µA of consumption when I should only have 2µA.
In fact I was using the function like this: attachInterrupt(PIN_PA5, myFunc, FALLING)
while it should be used like this: attachInterrupt(digitalPinToInterrupt(PIN_PA5), myFunc, FALLING)
the first parameter is named "pin", for me it seemed logical.
the documentation should be improved and an example put
The text was updated successfully, but these errors were encountered:
For several days I have been struggling with an ATTiny3216 to understand why in standby, when I use attachInterrupt I have 200µA of consumption when I should only have 2µA.
In fact I was using the function like this: attachInterrupt(PIN_PA5, myFunc, FALLING)
while it should be used like this: attachInterrupt(digitalPinToInterrupt(PIN_PA5), myFunc, FALLING)
the first parameter is named "pin", for me it seemed logical.
the documentation should be improved and an example put
The text was updated successfully, but these errors were encountered: