1
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?

M5NanoC6、リレー Grove- Relay であそぶ

Last updated at Posted at 2024-10-03

参考

o_coq430.jpg

結果

o_coq477.jpg

プログラム




//Grove_Relay_1S_M5NanoC6_1

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin as an output.
  pinMode(1, OUTPUT); //1 = G1
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(1, HIGH);   // turn the on (HIGH is the voltage level)
  delay(1000);             // wait for a second
  digitalWrite(1, LOW);    // turn the off by making the voltage LOW
  delay(1000);             // wait for a second
}




1
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
1
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?