Issues about using LED indicators in the target rcu_585_ProDK

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Haitao
Offline
Last seen:1 year 8 months ago
加入:2018-06-29 01:59
Issues about using LED indicators in the target rcu_585_ProDK

Dear support , I wanna use the user led , which is connected to P1_0, for indication, so I modified the target rcu_585_ProDK as following steps
1. copy app_leds_config.h and add to moduels_config_ProDK , include this file into target build, and exclude the app_leds_config.h in the modules_config
2. config the LED_GREEN element fo the app_led_pins, set .pin from GPIO_PIN_3 to GPIO_PIN_0
3. #define HAS_LED_INDICATORS in the user_config.h
4. call app_leds_on(LED_GREEN,0)
but it does not work , when the func app_leds_on called , the user led not lightened up, is there anyting I missed?

Attachment:
Device:
PM_Dialog
Offline
Last seen:1 day 5 hours ago
工作人员
加入:2018-02-08 11:03
嗨Hailtao,

嗨Hailtao,

If I am able to understand from you question, that you would like to accomplish is to turn on the LED ( on the Pro-DK) when the user_audio_start() is triggered? Did I understand correctly?

Thanks, PM_Dialog

Haitao
Offline
Last seen:1 year 8 months ago
加入:2018-06-29 01:59
yes, this is exactly what I

yes, this is exactly what I want to do.

PM_Dialog
Offline
Last seen:1 day 5 hours ago
工作人员
加入:2018-02-08 11:03
嗨Hailtao,

嗨Hailtao,

I am not quite sure if you could use the app_leds_on() as soon as you are working in the Pro-DK. You could configure and reserve the LED GPIO into the user_periph_setup.h header file (the user_periph_setup.h which is located under user_config_ProDK folder), and then call the GPIO_SetActive() / GPIO_SetInactive() APIs instead of app_leds_on().

Thanks, PM_Dialog