随笔分类 -  arduino

摘要:meArm机械臂安装与使用 这只是一个简单的说明文档,仅罗列了核心的代码和一些出现问题的地方. 1. 使用伺服电机 1.1伺服电机转动脚本: #include <Servo.h> //arduino内置的伺服电机的库 Servo myservo; // create servo object to 阅读全文
posted @ 2020-10-24 14:44 callmelx 阅读(1369) 评论(0) 推荐(1)
摘要: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 阅读(2734) 评论(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 阅读(913) 评论(0) 推荐(0)