Is it possible to register a class instance member function with Arduino's Wire.OnReceive?
I'm trying to make my code object-oriented, and want a specific non-static class function to handle I2C data, but if I'm reading this thread correctly, onReceive
is incompatible with classes since it only accepts a function pointer, which won't store context.