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?
Device:
嗨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
yes, this is exactly what I want to do.
嗨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