power.cpp added, i2cscan adapted
This commit is contained in:
1 parent
738543b529
commit
a1b7c102d0
6 files changed
+80
-66
No files matched your search
+8
-4
@@ -2,11 +2,15 @@
|
||||
#define _I2CSCAN_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#ifdef HAS_PMU
|
||||
#include "axp20x.h"
|
||||
#endif
|
||||
|
||||
#define SSD1306_PRIMARY_ADDRESS (0x3D)
|
||||
#define SSD1306_SECONDARY_ADDRESS (0x3C)
|
||||
#define BME_PRIMARY_ADDRESS (0x77)
|
||||
#define BME_SECONDARY_ADDRESS (0x76)
|
||||
#define AXP192_PRIMARY_ADDRESS (0x34)
|
||||
#define MCP_24AA02E64_PRIMARY_ADDRESS (0x50)
|
||||
#define QUECTEL_GPS_PRIMARY_ADDRESS (0x10)
|
||||
|
||||
int i2c_scan(void);
|
||||
void AXP192_init(void);
|
||||
|
||||
#endif
|
||||
+5
-4
@@ -1,12 +1,13 @@
|
||||
#ifndef _MAIN_H
|
||||
#define _MAIN_H
|
||||
|
||||
#include <esp_spi_flash.h> // needed for reading ESP32 chip attributes
|
||||
#include <esp_event_loop.h> // needed for Wifi event handler
|
||||
#include <esp_spi_flash.h> // needed for reading ESP32 chip attributes
|
||||
#include <esp_event_loop.h> // needed for Wifi event handler
|
||||
#include <esp32-hal-timer.h> // needed for timers
|
||||
#include <esp_coexist.h> // needed for showing coex sw version
|
||||
#include <esp_coexist.h> // needed for showing coex sw version
|
||||
|
||||
#include "globals.h"
|
||||
#include "power.h"
|
||||
#include "i2cscan.h"
|
||||
#include "blescan.h"
|
||||
#include "wifiscan.h"
|
||||
@@ -17,7 +18,7 @@
|
||||
#include "irqhandler.h"
|
||||
#include "led.h"
|
||||
#include "spislave.h"
|
||||
#if(HAS_LORA)
|
||||
#if (HAS_LORA)
|
||||
#include "lorawan.h"
|
||||
#endif
|
||||
#include "timekeeper.h"
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef _POWER_H
|
||||
#define _POWER_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "i2cscan.h"
|
||||
|
||||
#ifdef HAS_PMU
|
||||
#include <axp20x.h>
|
||||
#endif
|
||||
|
||||
void AXP192_init(void);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user