ESPRotary
ESPRotary copied to clipboard
Calback functions (or Rotary object) should have a void* argument
Most callback functions take a void* argument to provide some custom context. When you cannot do some lambda/closure functions like in Python, this is the way to work around it.
In my case, it would allow me to pass the pointer of the object that owns the Rotary object (and other things)