t-beam supreme: PMU and i2c fixes

Fixed i2c (Wire) init issue by defining pins in platformio
Added an i2c scanning function for debug
Corrected the pmu power up sequence
Этот коммит содержится в:
cod3doomy
2025-05-17 22:01:13 -07:00
родитель 9048142f63
Коммит ee41d6e2d3
3 изменённых файлов: 117 добавлений и 42 удалений
+3 -2
Просмотреть файл
@@ -15,8 +15,8 @@
#define P_LORA_MISO 13 //SX1262 MISO pin
#define P_LORA_MOSI 11 //SX1262 MOSI pin
#define PIN_BOARD_SDA 17 //SDA for OLED, BME280, and QMC6310U (0x1C)
#define PIN_BOARD_SCL 18 //SCL for OLED, BME280, and QMC6310U (0x1C)
//#define PIN_BOARD_SDA 17 //SDA for OLED, BME280, and QMC6310U (0x1C)
//#define PIN_BOARD_SCL 18 //SCL for OLED, BME280, and QMC6310U (0x1C)
#define PIN_BOARD_SDA1 42 //SDA for PMU and PFC8563 (RTC)
#define PIN_BOARD_SCL1 41 //SCL for PMU and PFC8563 (RTC)
@@ -58,6 +58,7 @@ public:
void printPMU();
#endif
bool power_init();
void begin() {
power_init();