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

@@ -1,6 +1,7 @@
#include <cstdint>
#include <string>
#include "driver/i2c_master.h"
#ifndef OLED_H
#define OLED_H
@@ -18,6 +19,8 @@ private:
void init(uint8_t sda_pin, uint8_t scl_pin);
void rotate8x8(uint8_t in[8], uint8_t out[8]);
i2c_master_bus_handle_t bus_handle = nullptr;
i2c_master_dev_handle_t dev_handle = nullptr;
};
#endif // OLED_H