diff --git a/darkwater/DW640.cpp b/darkwater/DW640.cpp index a6cf62e..9585ea8 100644 --- a/darkwater/DW640.cpp +++ b/darkwater/DW640.cpp @@ -42,7 +42,7 @@ DW640::DW640(uint8_t address) { * Then it enables auto-increment of register address to allow for faster writes. * And finally the restart is performed to enable clocking. */ -void DW640::initialize() { +bool DW640::initialize() { this->pwm = new PCA9685( this->devAddr ); if (!testConnection() ) { printf("No 640 board found\n"); diff --git a/darkwater/DW640.h b/darkwater/DW640.h index 02f30ba..633c34e 100644 --- a/darkwater/DW640.h +++ b/darkwater/DW640.h @@ -60,7 +60,7 @@ class DW640 { public: DW640(uint8_t address = DW640_DEFAULT_ADDRESS); - void initialize(); + bool initialize(); bool testConnection(); // float getFrequency();