初始提交:龙芯2K0300智能车卖家Demo完整代码
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#ifndef VL53L0X_H
|
||||
#define VL53L0X_H
|
||||
|
||||
#include <cstdint>
|
||||
#include "vl53l0x_def.h"
|
||||
|
||||
class VL53L0X
|
||||
{
|
||||
public:
|
||||
VL53L0X();
|
||||
~VL53L0X();
|
||||
|
||||
bool init();
|
||||
bool readRange(VL53L0X_RangingMeasurementData_t &data);
|
||||
bool stop();
|
||||
bool isOpen() const { return fd > 0; }
|
||||
|
||||
private:
|
||||
int fd;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user