Important changes to forums

We’re making some changes to the Mbed forums. From 10th December 2019 all new discussions will take place on our new forum site. You can continue to reply to existing threads for the next two weeks. After that we will archive this forum so you can return to useful posts in the future.

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

A question in regards to Nucleo Blink LED / NUCLEO F446RE

17 Jul 2019

Hello There,

I am a beginner, all I am trying to do is instead of using LED1 with "DigitalOut myled(LED1)" replaced with PA_5. However, LED1 remains always ON....What I am missing?

  1. include "mbed.h"

User PA_5 equal LED1 DigitalOut myled(PA_5);

int main() { while(1) { myled = 1; LED is ON wait(2.0); 2 seconds delay myled = 0; LED is OFF wait_ms(0.5); 0.5 milli seconds delay } }

Cheers Australia-Colombia

You need to log in to post a reply