随笔分类 - arduino
摘要:meArm机械臂安装与使用 这只是一个简单的说明文档,仅罗列了核心的代码和一些出现问题的地方. 1. 使用伺服电机 1.1伺服电机转动脚本: #include <Servo.h> //arduino内置的伺服电机的库 Servo myservo; // create servo object to
阅读全文
摘要: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
阅读全文
摘要:Arduino 点亮小灯 1.程序代码: int delayTime = 3000; // the setup function runs once when you press reset or power the board void setup() { // initialize digita
阅读全文

浙公网安备 33010602011771号