From b30c18bad134f149d7f7c7b94c326b0bbe5d2d2e Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Wed, 18 Jul 2018 15:28:53 +0200 Subject: [PATCH] ttgov2.h updated --- src/hal/ttgov2.h | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/src/hal/ttgov2.h b/src/hal/ttgov2.h index 8787feee..240b687d 100644 --- a/src/hal/ttgov2.h +++ b/src/hal/ttgov2.h @@ -28,26 +28,29 @@ #define OLED_SDA GPIO_NUM_21 // ESP32 GPIO21 -- SD1306 D1+D2 #define OLED_SCL GPIO_NUM_22 // ESP32 GPIO22 -- SD1306 D0 +/* source: +https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-2/11973 -/* - ESP32 LoRa module (SPI) OLED display (I2C) - --------- ----------------- ------------------ - 5 SCK SCK - 27 MOSI MOSI - 19 MISO MISO - 18 SS NSS - 14 RST - 26 DIO0 - 33 DIO1 (see note {1}) - 32 DIO2 (see note {2}) - 22 SCL SCL - 21 SDA SDA - 22 LED (useless, see note {3}) +TTGO LoRa32 V2: +ESP32 LoRa (SPI) Display (I2C) LED +----------- ---------- ------------- ------------------ +GPIO5 SCK SCK +GPIO27 MOSI MOSI +GPIO19 MISO MISO +GPIO18 SS NSS +EN RST RST +GPIO26 DIO0 +GPIO33 DIO1 (see #1) +GPIO32 DIO2 (see #2) +GPIO22 SCL SCL +GPIO21 SDA SDA +GPIO22 useless (see #3) - {1} Must be wired externally! - DIO1 is connected to a separate pin on pcb, but is not connected to GPIO33. - Solder a wire from pcb pin labeled "LORA_IRQ" to pin "GPIO33" (see TTGO V2.0 pinout). - {2} Is not wired, but not needed for LoRa. - {3} The on-board LED is wired to SCL (used by display) therefore totally useless! - */ +#1 Required (used by LMIC for LoRa). +Not on-board wired to any GPIO. Must be manually wired. <<-- necessary for paxcounter +#2 Optional (used by LMIC for FSK but not for LoRa). <<-- NOT necessary for paxcounter +Not on-board wired to any GPIO. When needed: must be manually wired. + +#3 GPIO22 is already used for SCL therefore LED cannot be used without conflicting with I2C and display. +*/ \ No newline at end of file