mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-11-21 22:47:05 +00:00
Modify the default I2C pin configuration
This commit is contained in:
1 parent
26754c73d8
commit
627f1ec419
2 files changed
+3
-8
No files matched your search
@@ -48,9 +48,7 @@ void variant_shutdown()
|
||||
digitalWrite(RADIOCORE_FEM_EN, LOW);
|
||||
digitalWrite(RADIOCORE_VFEM_CTRL, LOW);
|
||||
digitalWrite(PIN_ADC_CTRL, !ADC_CTRL_ENABLED);
|
||||
#ifdef PIN_BUZZER
|
||||
digitalWrite(PIN_BUZZER, LOW);
|
||||
#endif
|
||||
|
||||
digitalWrite(PIN_TFT_BL, !PIN_TFT_BL_ACTIVE);
|
||||
digitalWrite(PIN_TFT_EN, !PIN_TFT_EN_ACTIVE);
|
||||
|
||||
@@ -64,7 +62,6 @@ void variant_shutdown()
|
||||
nrf_gpio_cfg_default(PIN_TFT_EN);
|
||||
nrf_gpio_cfg_default(PIN_TFT_CS);
|
||||
nrf_gpio_cfg_default(PIN_TFT_DC);
|
||||
nrf_gpio_cfg_default(PIN_TFT_MOSI);
|
||||
nrf_gpio_cfg_default(PIN_TFT_RST);
|
||||
|
||||
nrf_gpio_cfg_default(PIN_SPI_MISO);
|
||||
|
||||
@@ -42,13 +42,11 @@ extern "C" {
|
||||
#define PWRMGT_LPCOMP_REFSEL 1
|
||||
|
||||
#define WIRE_INTERFACES_COUNT 1
|
||||
// Default board-package I2C pins.
|
||||
#define PIN_WIRE_SDA (0 + 6)
|
||||
#define PIN_WIRE_SCL (0 + 29)
|
||||
|
||||
// External connector I2C used by MeshCore sensors/rotary input.
|
||||
#define PIN_BOARD_SDA (32 + 11) // P1.11
|
||||
#define PIN_BOARD_SCL (0 + 2) // P0.02
|
||||
#define PIN_WIRE_SDA PIN_BOARD_SDA
|
||||
#define PIN_WIRE_SCL PIN_BOARD_SCL
|
||||
#define SENSOR_POWER_CTRL_PIN (0 + 12)
|
||||
#define SENSOR_POWER_ON HIGH
|
||||
#define SENSOR_INT (0 + 20)
|
||||
|
||||
Reference in new issue
Block a user