Can't compile ISRBlink on Wio Terminal

Hi guys,
I want to use Timer ISR on Wio Terminal. So I opened sample “ISRBlink.ino” from file menu.
But I can’t compile this code cause error below. How can I do this? What is wrong?
Thanks,

Hanjis

C:\Users\hara\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.7.8\libraries\TimerTC3\TimerTC3.cpp:26:5: error: 'REG_GCLK_CLKCTRL' was not declared in this scope
     REG_GCLK_CLKCTRL = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID (GCM_TCC2_TC3)) ;

Seed SAMD Board 1.7.8

Hi @Hanjis

Thanks for spotting, this is a depreciated library. To use timer on Wio Terminal, you can use this library:https://github.com/Dennis-van-Gils/SAMD51_InterruptTimer

Hi ansonhe97,
Thank you for your reply. I understand that point. I will useing these library carefully.

1 Like