LoginSignup
0
0

More than 1 year has passed since last update.

STM32F767でMbed OSで遊ぶ

Last updated at Posted at 2022-06-14

目的
いろいろ遊んでみる

1.新規

2.mbed OS blinky LED HelloWorldを選択

3.OK

4.コンパイル

5.転送

6.LEDが点滅することを確認

7.おわり

o_con533.jpg

o_con534.jpg

o_con535.jpg



/* mbed Microcontroller Library
 * Copyright (c) 2019 ARM Limited
 * SPDX-License-Identifier: Apache-2.0
 */

#include "mbed.h"
#include "platform/mbed_thread.h"


// Blinking rate in milliseconds
#define BLINKING_RATE_MS                                                    500


int main()
{
    // Initialise the digital pin LED1 as an output
    DigitalOut led(LED1);

    while (true) {
        led = !led;
        thread_sleep_for(BLINKING_RATE_MS);
    }
}



0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0