Arduino 使用舵机库时 其它引脚输出怪异 解决方案

使用Servo.h时,不管你在初始化时用的是9还是10脚,都不要把这两个脚作为舵机以外的用途!

例:

servo.attach(9);

digitalWrite(10,1);//错,不能把第10脚用作其它用途

原文地址:https://www.cnblogs.com/turtlegood/p/4287435.html