EmbeddedNim / picostdlib

Nim wrapper for the raspberry pi stdlib
MIT License
70 stars 11 forks source link

Add per-pin interrupts support #22

Closed casey-SK closed 2 years ago

casey-SK commented 2 years ago

Without the enableIrq proc, only one interrupt can be declared per core. With the enableIrq proc, each gpio pin can be monitored for interrupt. Note that all interrupts will go to the same callback function, and differences must be handled in there.