Skip to main content

pamoja_pca9685_init

Function pamoja_pca9685_init 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_pca9685_init( driver: *mut PamojaPca9685, ) -> PamojaStatus
Expand description

Puts the oscillator to sleep, writes the prescale and the output wiring, wakes it, waits the 500 us it needs, and restarts the channels.

§Returns

PamojaStatus::Ok, PamojaStatus::Io when the bus failed, or PamojaStatus::InvalidArgument for a null driver.

§Safety

driver must be a live handle or null.