mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 18:09:04 +00:00
Added detection sensor en pin to fix issues with RAK microwave (#2940)
This commit is contained in:
parent
8b16367597
commit
91e399a2b6
@ -28,6 +28,12 @@ int32_t DetectionSensorModule::runOnce()
|
|||||||
return disable();
|
return disable();
|
||||||
|
|
||||||
if (firstTime) {
|
if (firstTime) {
|
||||||
|
|
||||||
|
#ifdef DETECTION_SENSOR_EN
|
||||||
|
pinMode(DETECTION_SENSOR_EN, OUTPUT);
|
||||||
|
digitalWrite(DETECTION_SENSOR_EN, HIGH);
|
||||||
|
#endif
|
||||||
|
|
||||||
// This is the first time the OSThread library has called this function, so do some setup
|
// This is the first time the OSThread library has called this function, so do some setup
|
||||||
firstTime = false;
|
firstTime = false;
|
||||||
if (moduleConfig.detection_sensor.monitor_pin > 0) {
|
if (moduleConfig.detection_sensor.monitor_pin > 0) {
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
// ratio of voltage divider = 3.0 (R17=200k, R18=100k)
|
// ratio of voltage divider = 3.0 (R17=200k, R18=100k)
|
||||||
#define ADC_MULTIPLIER 3.1 // 3.0 + a bit for being optimistic
|
#define ADC_MULTIPLIER 3.1 // 3.0 + a bit for being optimistic
|
||||||
|
|
||||||
|
#define DETECTION_SENSOR_EN 28
|
||||||
|
|
||||||
#define USE_SX1262
|
#define USE_SX1262
|
||||||
|
|
||||||
#undef RF95_SCK
|
#undef RF95_SCK
|
||||||
|
@ -201,6 +201,8 @@ SO GPIO 39/TXEN MAY NOT BE DEFINED FOR SUCCESSFUL OPERATION OF THE SX1262 - TG
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define DETECTION_SENSOR_EN 4
|
||||||
|
|
||||||
#define USE_SX1262
|
#define USE_SX1262
|
||||||
#define SX126X_CS (42)
|
#define SX126X_CS (42)
|
||||||
#define SX126X_DIO1 (47)
|
#define SX126X_DIO1 (47)
|
||||||
@ -223,7 +225,7 @@ SO GPIO 39/TXEN MAY NOT BE DEFINED FOR SUCCESSFUL OPERATION OF THE SX1262 - TG
|
|||||||
// Therefore must be 1 to keep peripherals powered
|
// Therefore must be 1 to keep peripherals powered
|
||||||
// Power is on the controllable 3V3_S rail
|
// Power is on the controllable 3V3_S rail
|
||||||
// #define PIN_GPS_RESET (34)
|
// #define PIN_GPS_RESET (34)
|
||||||
#define PIN_GPS_EN PIN_3V3_EN
|
// #define PIN_GPS_EN PIN_3V3_EN
|
||||||
#define PIN_GPS_PPS (17) // Pulse per second input from the GPS
|
#define PIN_GPS_PPS (17) // Pulse per second input from the GPS
|
||||||
|
|
||||||
#define GPS_RX_PIN PIN_SERIAL1_RX
|
#define GPS_RX_PIN PIN_SERIAL1_RX
|
||||||
|
Loading…
Reference in New Issue
Block a user