20 lines
324 B
C++
20 lines
324 B
C++
#pragma once
|
|
|
|
#include <driver/i2c_master.h>
|
|
|
|
namespace borla {
|
|
|
|
class BorlaS3I2cBus final {
|
|
public:
|
|
BorlaS3I2cBus() = default;
|
|
~BorlaS3I2cBus();
|
|
|
|
bool Initialize();
|
|
i2c_master_bus_handle_t Handle() const { return handle_; }
|
|
|
|
private:
|
|
i2c_master_bus_handle_t handle_ = nullptr;
|
|
};
|
|
|
|
} // namespace borla
|