
Arduino学习
scwMason
一个怀揣梦想的有志青年
展开
-
控制LED的亮度
int i=6; void setup() { // put your setup code here, to run once: pinMode(i,OUTPUT); } void loop() { // put your main code here, to run repeatedly: analogWrite(i,0); delay(1000); analogW...原创 2018-10-03 11:06:05 · 1458 阅读 · 0 评论 -
蜂鸣器实验
int i=6; void setup() { // put your setup code here, to run once: pinMode(i,OUTPUT); } void loop() { // put your main code here, to run repeatedly: tone(i,300);//打开蜂鸣器 delay(1000); noTon...原创 2018-10-03 16:50:01 · 1052 阅读 · 0 评论