Skip to content

Commit

Permalink
Merge pull request #5 from matthias-bs/feature-adafruit-feather-esp32
Browse files Browse the repository at this point in the history
Added pin config for Adafruit Feather ESP32 + LoRa Radio Featherwing
  • Loading branch information
matthias-bs committed Apr 24, 2023
2 parents c5c73ef + ae25442 commit 5e615bf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
// Added Modbus interface option over USB serial
// 20230417 Added pin config for TTGO LoRa32 V2.1
// 20230420 Added pin config for
// DFRobot FireBeetle ESP32 + FireBeetle Cover LoRa
// DFRobot FireBeetle ESP32 + FireBeetle Cover LoRa
// 20230421 Added pin config for
// Adafruit Feather ESP32 + LoRa Radio Featherwing
//
///////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -95,6 +97,16 @@
#define DEBUG_TX 5 // Serial port output to USB converter (optional)
#define DEBUG_RX 26 // Serial port input from USB converter (n.c.)

#elif defined(ARDUINO_FEATHER_ESP32)
// https://github.com/espressif/arduino-esp32/blob/master/variants/feather_esp32/pins_arduino.h
#define INTERFACE_SEL 13 // Modbus interface select (0: USB / 1: RS485)
#define MAX485_DE 4 // D1, DE pin on the TTL to RS485 converter
#define MAX485_RE_NEG 15 // D2, RE pin on the TTL to RS485 converter
#define MAX485_RX 22 // D5, RO pin on the TTL to RS485 converter
#define MAX485_TX 23 // D6, DI pin on the TTL to RS485 converter
#define DEBUG_TX 12 // Serial port output to USB converter (optional)
#define DEBUG_RX 21 // Serial port input from USB converter (n.c.)

#else
// for generic CI target ESP32:ESP32:ESP32
#define INTERFACE_SEL 13 // Modbus interface select (0: USB / 1: RS485)
Expand Down

0 comments on commit 5e615bf

Please sign in to comment.