Add support for LoRa32 v2.0

This commit is contained in:
Mark Qvist 2022-01-24 19:30:00 +01:00
parent 551f0e3b18
commit c9511f7294
10 changed files with 39 additions and 14 deletions

View file

@ -99,12 +99,16 @@
const int pin_led_rx = 14;
const int pin_led_tx = 32;
#elif BOARD_MODEL == BOARD_LORA32_V2_0
// TODO: Add correct pins here
// const int pin_cs = 18;
// const int pin_reset = 23;
// const int pin_dio = 26;
// const int pin_led_rx = 2;
// const int pin_led_tx = 25;
const int pin_cs = 18;
const int pin_reset = 12;
const int pin_dio = 26;
#if defined(EXTERNAL_LEDS)
const int pin_led_rx = 15;
const int pin_led_tx = 4;
#else
const int pin_led_rx = 23;
const int pin_led_tx = 23;
#endif
#elif BOARD_MODEL == BOARD_LORA32_V2_1
const int pin_cs = 18;
const int pin_reset = 23;
@ -208,4 +212,4 @@
#define START_FROM_BROWNOUT 0x03
#define START_FROM_JTAG 0x04
#endif
#endif