arduino之蜂鸣器
总操流程:1、各器件链接
2、写入程序
3、测试
各器件链接
leanote://file/getImage?fileId=5ac49f2eab644164300014d1
写程序
[*]int led = 8;
[*]void setup()
[*]{
[*]}
[*]
[*]void loop()
[*]{
[*]tone(led, 1000);
[*]delay( 1000 );
[*]noTone(led);
[*]delay( 1000 );
[*]}
另外一种方式(ardublock图形编程)
leanote://file/getImage?fileId=5ac49f2eab644164300014cf
测试
leanote://file/getImage?fileId=5ac49f2eab644164300014d0
页:
[1]