c
c
cavedu
Search
⌃
K
CAVEDU教育團隊
BOSON電子積木套件
LinkIt 7697 BlocklyDuino 使用指南
LinkIt 7697 - Arduino IDE 開發指南
💻
Raspberry Pi Pico介紹
洞洞么教學材料包
洞洞兩教學材料包(貓咪盃硬體組材料包)
Arduino首次接觸就上手
認識Hangeekduino圖形化介面
Hangeekduino範例程式
輸入模組
輸出模組
LED模組
蜂鳴器模組
OLED顯示模組
書籍內容更新_202012更新
[Processing 互動裝置藝術結合 Arduino ]
Arduino BLE藍牙通訊 - Android 手機
其他感測器模組
MCS Lite 介紹及感測器網頁遠端監控
初學Jetson Nano不說No-CAVEDU教你一次懂
Powered By
GitBook
Comment on page
蜂鳴器模組
指令
對應的
Arduino 語法
tone(5, 1000);
使蜂鳴器發出設定好的頻率的聲音,透過迴圈使蜂鳴器發出電話鈴響的聲音。
Arduino 程式
int i;
void setup()
{
pinMode(5, OUTPUT);
}
void loop()
{
for (i = 0; i <= 10; i++) {
tone(5, 2000);
delay(50);
tone(5, 1000);
delay(50);
}
noTone(5);
delay(1000);
}
影片教學:
Previous
LED模組
Next
OLED顯示模組
Last modified
2yr ago