bool return
This commit is contained in:
@@ -42,7 +42,7 @@ DW640::DW640(uint8_t address) {
|
|||||||
* Then it enables auto-increment of register address to allow for faster writes.
|
* Then it enables auto-increment of register address to allow for faster writes.
|
||||||
* And finally the restart is performed to enable clocking.
|
* And finally the restart is performed to enable clocking.
|
||||||
*/
|
*/
|
||||||
void DW640::initialize() {
|
bool DW640::initialize() {
|
||||||
this->pwm = new PCA9685( this->devAddr );
|
this->pwm = new PCA9685( this->devAddr );
|
||||||
if (!testConnection() ) {
|
if (!testConnection() ) {
|
||||||
printf("No 640 board found\n");
|
printf("No 640 board found\n");
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class DW640 {
|
|||||||
public:
|
public:
|
||||||
DW640(uint8_t address = DW640_DEFAULT_ADDRESS);
|
DW640(uint8_t address = DW640_DEFAULT_ADDRESS);
|
||||||
|
|
||||||
void initialize();
|
bool initialize();
|
||||||
bool testConnection();
|
bool testConnection();
|
||||||
|
|
||||||
// float getFrequency();
|
// float getFrequency();
|
||||||
|
|||||||
Reference in New Issue
Block a user