Quantcast
Channel: ARM Connected Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 3617

在Seeed Arch Link上驱动舵机

$
0
0
使用Mbed驱动舵机真的非常简单。首先我们在Mbed的元件库中找到类似型号的舵机(R/C Servo | mbed ),然后将舵机的驱动导入到mbed程序中,然后就可以调用它驱动舵机了。   下面的代码演示了舵机的基本使用方法,舵机不停的转动:   #include "mbed.h" #include "Servo.h" DigitalOut led(P0_30); Servo servo(P0_13); float range = 0.005; float

Viewing all articles
Browse latest Browse all 3617

Trending Articles