James Hall
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
13 deletions
-
src/helpers/TBeamBoard.h
|
|
@ -7,19 +7,6 @@ |
|
|
#include <Arduino.h> |
|
|
#include <Arduino.h> |
|
|
#include "XPowersLib.h" |
|
|
#include "XPowersLib.h" |
|
|
|
|
|
|
|
|
#ifndef CONFIG_PMU_SDA |
|
|
|
|
|
#define CONFIG_PMU_SDA 21 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CONFIG_PMU_SCL |
|
|
|
|
|
#define CONFIG_PMU_SCL 22 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef CONFIG_PMU_IRQ |
|
|
|
|
|
#define CONFIG_PMU_IRQ 35 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XPowersPMU power; |
|
|
XPowersPMU power; |
|
|
|
|
|
|
|
|
// LoRa radio module pins for TBeam
|
|
|
// LoRa radio module pins for TBeam
|
|
|
@ -45,6 +32,7 @@ class TBeamBoard : public ESP32Board { |
|
|
public: |
|
|
public: |
|
|
void begin() { |
|
|
void begin() { |
|
|
ESP32Board::begin(); |
|
|
ESP32Board::begin(); |
|
|
|
|
|
|
|
|
power.setALDO2Voltage(3300); |
|
|
power.setALDO2Voltage(3300); |
|
|
power.enableALDO2(); |
|
|
power.enableALDO2(); |
|
|
|
|
|
|
|
|
|