t-beam supreme: display fix, BME add, user btn fix

-Fixed build issues after display refactor
-Added BME280 support and updated SensorManager to include this data
-Fixed user button and verified it turns the display on
이 커밋은 다음에 포함됨:
cod3doomy
2025-05-19 12:55:56 -07:00
부모 f9c0056955
커밋 fd37810022
6개의 변경된 파일89개의 추가작업 그리고 10개의 파일을 삭제
+2 -2
파일 보기
@@ -10,10 +10,10 @@
class SensorManager {
public:
double node_lat, node_lon; // modify these, if you want to affect Advert location
double node_lat, node_lon, node_temp, node_hum, node_pres; // modify these, if you want to affect Advert location
double node_altitude; // altitude in meters
SensorManager() { node_lat = 0; node_lon = 0; node_altitude = 0; }
SensorManager() { node_lat = 0; node_lon = 0; node_altitude = 0; node_temp = 0; node_hum = 0; node_pres = 0;}
virtual bool begin() { return false; }
virtual bool querySensors(uint8_t requester_permissions, CayenneLPP& telemetry) { return false; }
virtual void loop() { }
+3 -1
파일 보기
@@ -22,7 +22,7 @@
#define PIN_BOARD_SCL1 41 //SCL for PMU and PFC8563 (RTC)
#define PIN_PMU_IRQ 40 //IRQ pin for PMU
#define PIN_USER_BTN 0
//#define PIN_USER_BTN 0
#define P_BOARD_SPI_MOSI 35 //SPI for SD Card and QMI8653 (IMU)
#define P_BOARD_SPI_MISO 37 //SPI for SD Card and QMI8653 (IMU)
@@ -55,7 +55,9 @@ class TBeamS3SupremeBoard : public ESP32Board {
XPowersAXP2101 PMU;
public:
#ifdef MESH_DEBUG
void scanDevices(TwoWire *w);
void printPMU();
void printBMEValues();
#endif
bool power_init();