随笔分类 -  Arduin---软件

摘要:Arduino学习笔记 蜂鸣器 同样还是长正短负 float sinVal; int toneVal; void setup(){ pinMode(8, OUTPUT); } void loop(){ for(int x=0; x<180; x++){ //将sin函数角度转化为弧度 sinVal 阅读全文
posted @ 2022-02-06 15:18 liankewei123456 阅读(277) 评论(0) 推荐(0) 编辑
摘要:Arduino学习笔记 Fade 呼吸灯 /* Fade This example shows how to fade an LED on pin 9 using the analogWrite() function. The analogWrite() function uses PWM, so 阅读全文
posted @ 2022-02-04 11:29 liankewei123456 阅读(130) 评论(0) 推荐(0) 编辑
摘要:Arduino学习笔记 Blink without delay 上一篇里的 delay 非常拉,delay 的时候什么都不能做 这里把它规避掉 1 /* 2 Blink without Delay 3 4 Turns on and off a light emitting diode (LED) c 阅读全文
posted @ 2022-02-03 20:15 liankewei123456 阅读(101) 评论(0) 推荐(0) 编辑
摘要:Arduino学习笔记 Blink Blink 应该是最简单的程序了 来自Arduino官网 1 /* 2 Blink 3 4 Turns an LED on for one second, then off for one second, repeatedly. 5 6 Most Arduinos 阅读全文
posted @ 2022-02-03 20:12 liankewei123456 阅读(202) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示