GTT2.5 slider handler
Posted: Tue Oct 20, 2020 12:49 pm
Anyone have any examples of a handler for a GTT2.5 type slider control?
I tried to create just a basic one to do a printf when the handler is tripped, based on what I saw in gtt_events.h:
I then set the handler in the main() function:
This does absolutely nothing. Obviously I have no understanding on how to do this. ( I do have button/region handlers working properly)
Any suggestions greatly appreciated! Thanks.
I tried to create just a basic one to do a printf when the handler is tripped, based on what I saw in gtt_events.h:
Code: Select all
void handle_MotorSlider(gtt_device *gtt, uint16_t ObjectID, uint16_t PropertyID){
printf("Slider Handler %u %u\n", ObjectID, PropertyID);
}
Code: Select all
gtt25_set_baseobject_on_property_changehandler(gtt, handle_MotorSlider);
Any suggestions greatly appreciated! Thanks.