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?

Arduino UNO 3、ブザー Grove- Buzzer で遊ぶ

Last updated at Posted at 2024-09-19

参考

o_coq436.jpg

結果

わかりずらいが確かに音がなった
(発振器内蔵タイプだった)

プログラムo_coq435.jpg



//Grove_Buzzer_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
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?