I am writing custom modules for ConfigurableFirmata, I see that libraries use callbacks such as:
void Class::handleCapability(byte pin);
boolean Class::handlePinMode(byte pin, int mode);
...
boolean Class::handleSysex(byte command, byte argc, byte *argv);
The question is, I donβt quite understand why some functions are logical and when to return TRUE or FALSE (and what happens when you return TRUE or FALSE?).
source
share