摘要: 转载:http://blog.csdn.net/u012223913/article/details/51242054 首先先明确一点,360度舵机无法像180度舵机一样控制角度,它只能控制方向和速度。 arduino的<servo.h>库提供两个函数控制舵机。write()和writeMicros 阅读全文
posted @ 2017-01-10 15:49 极客先锋 阅读(20867) 评论(0) 推荐(0) 编辑
摘要: 今天在LINUX下编译C程序时,出现了:warning: the `gets' function is dangerous and should not be used. 这个warning。 百度之后,得知 问题出在程序中使用了 gets ,Linux 下gcc编译器不支持这个函数,解决办法是使用 阅读全文
posted @ 2017-01-10 01:45 极客先锋 阅读(272) 评论(0) 推荐(0) 编辑