Open Nikl174 opened 1 year ago
I think it whould be nice to have a callback function that gets called when ever a pin-change is receded for handling statechanges because in the current implementation only the current state is saved in the dictionary.
The callback function whould look like this:
fn callback(old_state: PinLevel, new_state: PinLevel) {...}
But I'm currently not sure, how to implement it in a nice way.
I think it whould be nice to have a callback function that gets called when ever a pin-change is receded for handling statechanges because in the current implementation only the current state is saved in the dictionary.
The callback function whould look like this:
But I'm currently not sure, how to implement it in a nice way.