@@ -240,7 +240,38 @@ ifeq ($(PRECONF),lopy4-uart)
240240endif
241241
242242# ------------------------------------------------------------------------------
243- # esp32-generic: Generic ESP32 board manually wired to a transceiver
243+ # t-beam: TTGO/LILYGO T-Beam ESP32 board manually wired to a transceiver
244+ # ------------------------------------------------------------------------------
245+ # The TTGO/LILYGO T-Beam is an ESP32-based board with GPS and LoRa module on it.
246+ # The following configuration is based on the LILYGO variant, Rev 1.1:
247+ # - https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/master/assets/image/t-beam_v1.1_pinmap.jpg
248+ # - https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/master/schematic/LilyGo_TBeam_V1.1.pdf
249+ #
250+ # Sadly, DIO3 is not connected on these boards.
251+ ifeq ($(PRECONF),t-beam-uart)
252+ # Use the generic wroom-32 board as basis
253+ BOARD = esp32-wroom-32
254+
255+ # For simplicity: Same SPI pins as for the ESP32
256+ LORA_SPI_BUS ?= "SPI_DEV(0)"
257+ CFLAGS += -DSPI0_SCK=GPIO5
258+ CFLAGS += -DSPI0_MISO=GPIO19
259+ CFLAGS += -DSPI0_MOSI=GPIO27
260+ LORA_SPI_CS ?= GPIO18
261+ LORA_GPIO_RESET ?= GPIO23
262+
263+ LORA_GPIO_DIO0 ?= GPIO26
264+
265+ # Jam on button press
266+ LORA_GPIO_JAMMER ?= GPIO38
267+
268+ # We use the TCP interface over WiFi
269+ INTERFACE ?= uart
270+
271+ endif
272+
273+ # ------------------------------------------------------------------------------
274+ # esp32-generic: Generic ESP32 board with LoRa and GPS, v1.1
244275# ------------------------------------------------------------------------------
245276# Setup is very similar to the LoPy, but you can use any ESP32 DevBoard and
246277# connect a LoRa Transceiver to it, like the [Dragino LoRa Bee](https://wiki.dragino.com/index.php?title=Lora_BEE)
0 commit comments