Adafruit_Seesaw icon indicating copy to clipboard operation
Adafruit_Seesaw copied to clipboard

NeoTrellis callback registration does not compile

Open ukmaker opened this issue 2 years ago • 3 comments

NeoTrellis.h defines three methods for registering a callback with NeoTrellis and MultiTrellis. The method signatures are such that this does not compile for me using PlatformIO.

A signature such as void registerCallback(uint8_t key, TrellisCallback (*cb)(keyEvent)); Should be rewritten to void registerCallback(uint8_t key, TrellisCallback cb); And the _callbacks[] array adjusted to suit.

I wonder how this can compile at all?

ukmaker avatar May 04 '22 18:05 ukmaker