made sure all is working perfectly

This commit is contained in:
Ghassan Yusuf 2025-05-11 01:58:29 -07:00
parent 8fc2d6ad13
commit a34dff489d
2 changed files with 3 additions and 1 deletions

View File

@ -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) {}

View File

@ -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();