Event Driven Button

Dear all,

I notice that button function has been added to the latest version of RIOT. Basically, it gives 0 on pressing and 1 on releasing. Is there an event driven implementation for this button such onClick() or onPress()?




I am not quite sure which button function you are referring to. If you mean the buttons mapped via SAUL, then there is no event drive API, yet. Though this is being worked on and will hopefully be introduced to RIOT soon…

Cheers, Hauke

Thanks Hauke! That explanation helps.