1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Arduino UNO 3、リレー Grove- Relay であそぶ

Posted at

参考

o_coq430.jpg

結果

o_coq431.jpg

プログラム



//Grove_Relay_1S_UNO_1

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

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


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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?