ESPRotary icon indicating copy to clipboard operation
ESPRotary copied to clipboard

Calback functions (or Rotary object) should have a void* argument

Open homedatadev opened this issue 6 months ago • 3 comments

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)

homedatadev avatar Jan 04 '24 00:01 homedatadev