Arm Mbed OS support forum

STM32WB55RG BLE-LED Change Led2 to another

Hi
I just started to use arm mbed today. I have compiled and downloaded BLE-LED application using online compiler and is working fine.

Im trying to change LED2 to PA10 which I tought it would be really easy to do but couldnt find the definition of LED2. Could you tell me where the definitions are another way to do it ?
Thank you

class LEDDemo : ble::Gap::EventHandler {

public:
LEDDemo(BLE &ble, events::EventQueue &event_queue) :
_ble(ble),
_event_queue(event_queue),
_alive_led(LED1, 1),
_actuated_led(LED2, 0),
_led_uuid(LEDService::LED_SERVICE_UUID),
_led_service(NULL),
_adv_data_builder(_adv_buffer) { }

Hi,

the LED2 is a mask of PB_0 which it is defined here and the _actuated_led is normal DigitalOut.
So you can replace the LED2 to PA_10, both are of same type.

BR, Jan

Hi
LED are defined here: