LoginSignup
0
0

More than 1 year has passed since last update.

STM32G031J6M6用の俺の考えた無敵のLチカ(Keil Studio)(wait_us)

Last updated at Posted at 2022-08-13

x 過去ログを見よ!!

目的
最強のLチカを作る。
PA_12(6ピン)
mbed-osのソースを読んでいたらwait_usちゃんがいたので。

o_con666.jpg

o_con667.jpg

o_con663.jpg

o_con664.jpg




//PA_12_L_TI_KA_031_K1

//インクルド
#include "mbed.h"

//LEDのポートの定義
DigitalOut myled(PA_12);

//メイン関数
int main()
{

    //無限ループ
    while(1) {

        //LEDの反転
        myled = !myled;

        //1秒待つ
        wait_us(1000*1000);

    } //while

} //main


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