LoginSignup
0
0

More than 1 year has passed since last update.

STM32L010のGPIOで遊ぶ(ポートA)

Last updated at Posted at 2021-12-11

目的
ポート出力のテスト

いろいろ
少女A じゃなくて ポートAだよ
完全には確認してないや

参考



#include "mbed.h"

//                       76543210
PortOut ledport(PortA, 0b00010000);
//DigitalOut myled(PA_4);


int main()
{

    while(1) {

        //myled = 1;
        ledport = 0b00010000;
        wait(0.2);
        //myled = 0;
        ledport = 0;
        wait(0.2);

    }

}

void error(const char* format, ...) {}


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