How to do a timer based interrupt

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 20.04

Which version of system do you use? Please provide the version of the system here:

Khadas vim3 Linux 4.9.241

Please describe your issue below:

Is there any way to have a timer based interrupt in python on the vim3?

Hello @ericz9002

Maybe Google or ChatGPT will give you the anwer.

Hi @numbqq

When I look it up on google it is mostly high level things like a scheduler module or using threading with timers. I was thinking a timer interrupt is more accurate but I don’t know if it is possible. Normally on microcontrollers there is a way to setup interrupts like this but I’m not sure for single board computers. I was thinking if there was a functionality for this it would be a Khadas feature not a general python thing

I see that you guys have a section on gpio interrupts but not timer interrupts.

Thanks in advance.

@ericz9002 maybe check this: