5 years, 2 months ago.

using gpios

help me in initializing code for gpio pin to output a led?

Question relating to:

Affordable and flexible platform to ease prototyping using a STM32L152RET6 microcontroller.

1 Answer

4 years, 10 months ago.

Hello arsalan channar,

You can use this example https://developer.mbed.org/teams/ST/code/Nucleo_blink_led/?platform=ST-Nucleo-L152RE

You may change LED1 by any pin from the STM32L152 if you connect an external led to another pin.

DigitalOut myled(LED1);

Kind regards

Accepted Answer