0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

STM32G071でナイトライダー(D8からD13)

Last updated at Posted at 2022-12-20

目的

GPIOのテスト

o_cop257.jpg




//D7_D13_Knight_Rider_071_1

void setup() {

  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(10, OUTPUT);

  pinMode(11, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);

}

void loop() {

  digitalWrite(8, HIGH);  delay(1000);
  digitalWrite(8, LOW);   delay(1000);

  digitalWrite(9, HIGH);  delay(1000);
  digitalWrite(9, LOW);   delay(1000);

  digitalWrite(10, HIGH);  delay(1000);
  digitalWrite(10, LOW);   delay(1000);


  digitalWrite(11, HIGH);  delay(1000);
  digitalWrite(11, LOW);   delay(1000);

  digitalWrite(12, HIGH);  delay(1000);
  digitalWrite(12, LOW);   delay(1000);

  digitalWrite(13, HIGH);  delay(1000);
  digitalWrite(13, LOW);   delay(1000);

}





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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?