bolar_2 backup
This commit is contained in:
19
main/platform/borla_s3/i2c_bus.h
Normal file
19
main/platform/borla_s3/i2c_bus.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user