Function uugear_ffi::writeServo [−][src]
pub unsafe extern "C" fn writeServo(
dev: *mut UUGearDevice,
pin: c_int,
angle: c_int
)
Write the angle of servo on given pin
parameters: dev is the pointer of the device struct pin is the digital pin that connects to the signal line of servo angle is the target angle of the servo