detect test

This commit is contained in:
shrkey
2016-10-09 20:14:29 +01:00
parent 33c39b85af
commit debb69a636

View File

@@ -44,6 +44,13 @@ DW640::DW640(uint8_t address) {
*/
void DW640::initialize() {
this->pwm = new PCA9685( this->devAddr );
if (!testConnection() ) {
printf("No 640 board found\n");
return 0;
}
this->pwm->setFrequency( 100 );
}
/** Verify the I2C connection.