Skip to content

Commit

Permalink
Midi: ext. I2C air pressure sensor is doing good [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Linar Yusupov committed Oct 17, 2023
1 parent d48eafc commit d8bf1a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions software/firmware/source/SoftRF/src/platform/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1482,10 +1482,12 @@ static void ESP32_setup()
pinMode(SOC_GPIO_PIN_HELTRK_VEXT_EN, INPUT_PULLUP);
} else {
digitalWrite(SOC_GPIO_PIN_HELTRK_GNSS_EN, LOW);
pinMode(SOC_GPIO_PIN_HELTRK_GNSS_EN, OUTPUT);
digitalWrite(SOC_GPIO_PIN_HELTRK_TFT_EN, LOW);
digitalWrite(SOC_GPIO_PIN_HELTRK_VEXT_EN, LOW);

pinMode(SOC_GPIO_PIN_HELTRK_TFT_EN, INPUT_PULLDOWN);
pinMode(SOC_GPIO_PIN_HELTRK_VEXT_EN, INPUT_PULLDOWN);
pinMode(SOC_GPIO_PIN_HELTRK_GNSS_EN, OUTPUT);
pinMode(SOC_GPIO_PIN_HELTRK_TFT_EN, OUTPUT);
pinMode(SOC_GPIO_PIN_HELTRK_VEXT_EN, OUTPUT);
}

digitalWrite(SOC_GPIO_PIN_HELTRK_GNSS_RST, LOW);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#define SOC_GPIO_PIN_HELTRK_TFT_EN 46 /* active LOW */

// 1st I2C bus
#define SOC_GPIO_PIN_HELTRK_SDA 6 /* TBD */
#define SOC_GPIO_PIN_HELTRK_SCL 7 /* TBD */
#define SOC_GPIO_PIN_HELTRK_SDA 6
#define SOC_GPIO_PIN_HELTRK_SCL 7

// LED
#define SOC_GPIO_PIN_HELTRK_LED 18 /* white, active HIGH */
Expand Down

0 comments on commit d8bf1a5

Please sign in to comment.