Yeah, I know. But attachInterrupt() need an input pin to trigger the Interrupt function and all GPIO pin is used for other purpose. And it won't accept delay function because it doesn't has a timer.
I use one of your successful projects
Code: Select all
https://learn.adafruit.com/trinket-gemma-blinky-eyes?view=all#code
as a reference. if we can enable the timer, we can use a timer to trigger ISR() function.
But i follow the instruction from 31.6.2.2 of ATSAMD21E18 datasheet, it can't declared the address name of the register from processor.
i wise to fix the problem, so i can use timer to trigger instead of using hardware