diff --git a/src/I2CMotor.cpp b/src/I2CMotor.cpp index fe54a35..8a17afb 100644 --- a/src/I2CMotor.cpp +++ b/src/I2CMotor.cpp @@ -1,5 +1,7 @@ #include "I2CMotor.h" +I2CMotor::I2CMotor() {} + I2CMotor::I2CMotor(uint8_t sda, uint8_t scl, uint32_t freq) : sda_(sda), scl_(scl), freq_(freq), slave_addr_(0) {} diff --git a/src/I2CMotor.h b/src/I2CMotor.h index 09c22dc..50475a4 100644 --- a/src/I2CMotor.h +++ b/src/I2CMotor.h @@ -6,8 +6,8 @@ class I2CMotor { public: + I2CMotor(); I2CMotor(uint8_t sda = 8, uint8_t scl = 3, uint32_t freq = 100000); - void begin(); bool found(); uint8_t address();