Hello!Now I am doing a project with i.mx.rt1060 and a screen with GUI guider.I want to touch the screen button to let the led which is on 1060 light on.Now I can run my lvgl on 1060,and I can also run the sample code led blink respectively.But how should I do to combine the two project?
By the way, one part of my project is also to use my phone pair with 1060 and transmit a signal to 1060 and let the led light on.But I have difficulty finding the solution in reference.Can anyone give me a tutorial to teach us how to deal with?
Thanks for your reading.
dear @richen
Thanks for your interest in NXP products, answering for the first question I recommend create a function in your GUI Project that allow change the LED state, then call this function in the event function created by GUIguider in the file called events_init.c.
static void buttom_name(lv_obj_t * obj, lv_event_t event)
{
switch (event)
{
case LV_EVENT_PRESSED:
{
toggle_led_function(); //your function goes here.
}
break;
default:
break;
}
}
I hope this information help you!
Kind Regards
-Ramon.