Adjust the sensor power-on sequence
This commit is contained in:
1 parent
a8dc73f368
commit
b6f20133d2
2 files changed
+4
-6
No files matched your search
@@ -41,20 +41,16 @@ void HeltecRC52Board::begin()
|
||||
#endif
|
||||
Wire.begin();
|
||||
|
||||
pinMode(RADIOCORE_VFEM_CTRL, OUTPUT);
|
||||
digitalWrite(RADIOCORE_VFEM_CTRL, HIGH);
|
||||
pinMode(RADIOCORE_FEM_EN, OUTPUT);
|
||||
digitalWrite(RADIOCORE_FEM_EN, HIGH);
|
||||
|
||||
pinMode(SENSOR_RST_PIN, OUTPUT);
|
||||
digitalWrite(SENSOR_RST_PIN, HIGH);
|
||||
pinMode(SENSOR_INT, INPUT);
|
||||
|
||||
periph_power.begin();
|
||||
|
||||
#ifdef NRF52_POWER_MANAGEMENT
|
||||
checkBootVoltage(&power_config);
|
||||
#endif
|
||||
periph_power.begin();
|
||||
periph_power.claim();
|
||||
}
|
||||
|
||||
void HeltecRC52Board::shutdownPeripherals()
|
||||
|
||||
@@ -23,6 +23,8 @@ build_flags = ${nrf52_base.build_flags}
|
||||
-D LORA_TX_POWER=22
|
||||
-D SX126X_CURRENT_LIMIT=140
|
||||
-D SX126X_RX_BOOSTED_GAIN=1
|
||||
-D SX126X_DIO2_AS_RF_SWITCH=true
|
||||
-D SX126X_DIO3_TCXO_VOLTAGE=1.8
|
||||
build_src_filter = ${nrf52_base.build_src_filter}
|
||||
+<helpers/*.cpp>
|
||||
+<helpers/sensors>
|
||||
|
||||
Reference in new issue
Block a user