
arduino
IcyFeather
这个作者很懒,什么都没留下…
展开
-
arduino 双按钮
boolean pushButton1;boolean pushButton2;void setup() { // put your setup code here, to run once: pinMode(2,INPUT_PULLUP); pinMode(8,INPUT_PULLUP); pinMode(13,OUTPUT);}void loop() { // put your main code here, to run repeatedly: pushButto.原创 2020-07-08 17:06:00 · 1653 阅读 · 2 评论 -
arduino 导入时avrdude: ser_open(): can‘t open device “\\.\COM4“: 系统找不到指定的文件。
解决方法:数据线忘插了,插上去就好了原创 2020-07-08 16:44:03 · 6672 阅读 · 1 评论 -
arduino btn
boolean pushButton;void setup() { // put your setup code here, to run once: pinMode(2,INPUT_PULLUP); pinMode(13,OUTPUT);}void loop() { // put your main code here, to run repeatedly: pushButton = digitalRead(2); if (pushButton) { //if pu.原创 2020-07-08 16:42:13 · 303 阅读 · 0 评论