---
# System prepended metadata

title: 蜂鳴器

---

# 蜂鳴器

![](https://hackmd.io/_uploads/rJ_09L5-a.png)
```javascript=
void setup()
{
  pinMode( 6 , OUTPUT);
}

void loop()
{
  digitalWrite(6 , HIGH);
  tone(5, 440);
  delay( 1000 );
  tone(6, 600);
  delay( 1000 );
  noTone(6);
}
```