摘要: Arduino 使用按键开关 1. 代码示例 // digital pin 2 has a pushbutton attached to it. Give it a name: int pushButton = 2; // the setup routine runs once when you p 阅读全文
posted @ 2020-10-14 20:29 callmelx 阅读(2423) 评论(0) 推荐(0) 编辑
摘要: Arduino 点亮小灯 1.程序代码: int delayTime = 3000; // the setup function runs once when you press reset or power the board void setup() { // initialize digita 阅读全文
posted @ 2020-10-14 20:22 callmelx 阅读(824) 评论(0) 推荐(0) 编辑