Mbed

example programs > nucleo_blink_led > import this program
import > main.cpp

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1; // LED is ON
        wait(0.2); // 200 ms
        myled = 0; // LED is OFF
        wait(1.0); // 1 sec
    }
}

save > compile > file download (Nucleo_blink_led_NUCLEO_L476RG.bin)

install gcc-arm-none-eabi

sudo apt-get install gcc-arm-none-eabi

export program > toolchain > GCC (ARM Embedded)

arm-none-eabi-g++ -v
make

Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!

Name*


Email*


Message*




* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2023/03/10 07:30
  • by Daiphys