From a34dff489d9cfa0fea2741345d609bd8df4bc023 Mon Sep 17 00:00:00 2001 From: ghassan Date: Sun, 11 May 2025 01:58:29 -0700 Subject: [PATCH] made sure all is working perfectly --- src/I2CMotor.cpp | 2 ++ src/I2CMotor.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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();