Function uugear_ffi::readServo[][src]

pub unsafe extern "C" fn readServo(dev: *mut UUGearDevice, pin: c_int) -> c_int

Read 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

returns: integer that represents the angle of the servo