Add distance sensor, rewrite OLED to use new i2c library

This commit is contained in:
2026-02-19 14:48:31 -05:00
parent 29b79fbbb5
commit 20b047bbfe
31 changed files with 3040 additions and 122 deletions

View File

@@ -5,10 +5,13 @@
#ifndef ISENSOR_H
#define ISENSOR_H
#include <vector>
#include "SensorMessageBuilder.h"
class ISensor {
public:
virtual ~ISensor() {}
virtual void get_reading() = 0; // todo: return a flatbuffer object
virtual std::vector<Flatbuffers::sensor_value> get_sensor_data() = 0;
};
#endif //ISENSOR_H