Update pin map & some method

This commit is contained in:
lewisxhe 2024-12-18 16:01:35 +08:00
commit 0c08999f64
144 changed files with 19584 additions and 1776 deletions

View file

@ -47,8 +47,25 @@
#define LORA_FREQ_CONFIG 915.0
#endif
enum {
POWERMANAGE_ONLINE = _BV(0),
DISPLAY_ONLINE = _BV(1),
RADIO_ONLINE = _BV(2),
GPS_ONLINE = _BV(3),
PSRAM_ONLINE = _BV(4),
SDCARD_ONLINE = _BV(5),
AXDL345_ONLINE = _BV(6),
BME280_ONLINE = _BV(7),
BMP280_ONLINE = _BV(8),
BME680_ONLINE = _BV(9),
QMC6310_ONLINE = _BV(10),
QMI8658_ONLINE = _BV(11),
PCF8563_ONLINE = _BV(12),
OSC32768_ONLINE = _BV(13),
};
#define ENABLE_BLE //Enable ble function
typedef struct {
String chipModel;
@ -78,7 +95,9 @@ void scanDevices(TwoWire *w);
bool beginGPS();
void loopPMU();
bool recoveryGPS();
void loopPMU(void (*pressed_cb)(void));
#ifdef HAS_PMU
extern XPowersLibInterface *PMU;
@ -100,3 +119,9 @@ extern SPIClass SDCardSPI;
#elif defined(ARDUINO_ARCH_STM32)
extern HardwareSerial SerialGPS;
#endif
float getTempForNTC();
void setupBLE();
extern uint32_t deviceOnline;