i.mx rt 1060 with GUI guider

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.mx rt 1060 with GUI guider

409 次查看
richen
Contributor I

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.

0 项奖励
回复
1 回复

384 次查看
Ramon_Vega
NXP TechSupport
NXP TechSupport

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.

 

0 项奖励
回复