GTT2.5 slider handler

GTT Designer Software Support

Moderator: Mods

Post Reply
bigmaple
LCD?
Posts: 8
Joined: Tue Apr 14, 2020 5:10 am
Location: Western Pennsylvania

GTT2.5 slider handler

Post by bigmaple »

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:

Code: Select all

void handle_MotorSlider(gtt_device *gtt, uint16_t ObjectID, uint16_t PropertyID){
    printf("Slider Handler %u  %u\n", ObjectID, PropertyID);
}
I then set the handler in the main() function:

Code: Select all

gtt25_set_baseobject_on_property_changehandler(gtt, handle_MotorSlider);
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.

Post Reply