Created
March 10, 2016 17:49
-
-
Save Harakan/908f0e434fb14cf7f8c7 to your computer and use it in GitHub Desktop.
julian... callback.... wats?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Wrap | |
{ | |
public: | |
virtual void printerStatusHandler(void* newMessage); | |
virtual void moveToDripCountHandler(void* newMessage); | |
}; | |
struct Handler { | |
uint8_t typeId; | |
void (*handler)(void* message); | |
}; | |
struct WrapHandler { | |
uint8_t typeId; | |
void (Wrap::*handler)(void* message); | |
Wrap* ctx; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`class PeachDuino
{
public:
PeachDuino(HardwareSerial &hw_serial)
{
serial = &hw_serial;
};