ruiseixasm / Versatile_RotaryEncoder

Library that offers a versatile Rotary Encoder usage!
GNU General Public License v3.0
11 stars 2 forks source link

possibility to use std::function (and lambdas) as callback #4

Closed igna09 closed 1 year ago

igna09 commented 1 year ago

if I #define USE_STD_FUNCTION I can pass std::function (or [](){ ... } lambdas) as callbacks

ruiseixasm commented 1 year ago

Unfortunately "std::function" doesn't compile in Arduino. As many other functionalities you have in C++ 11 and above "std::function" is just another one unavailable in Arduino. Do you have any working example of "std::function" so I make it work? I'm compiling in PlatformIO btw.