Skip to content

Commit bed9c96

Browse files
cyberman54me-no-dev
authored andcommitted
update board files for LoPy, LoPy4, T-Beam (#2241)
changed LORA_IO0 -> LORA_IRQ added LORA_RST added SS
1 parent 5af139b commit bed9c96

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Diff for: variants/lopy/pins_arduino.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
1818
#define LORA_CS 17 // GPIO17 - SX1276 CS
1919
#define LORA_RST 18 // GPIO18 - SX1276 RST
20-
#define LORA_IO0 23 // GPIO23 - SX1276 IO0
21-
#define LORA_IO1 23 // GPIO23 - SX1276 IO1 tied by diode to IO0
22-
#define LORA_IO2 23 // GPIO23 - SX1276 IO2 tied by diode to IO0
20+
#define LORA_IRQ 23 // GPIO23 - SX1276 IO0
21+
#define LORA_IO0 LORA_IRQ // alias
22+
#define LORA_IO1 LORA_IRQ // tied by diode to IO0
23+
#define LORA_IO2 LORA_IRQ // tied by diode to IO0
2324

2425
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2526
#define BUILTIN_LED LED_BUILTIN // backward compatibility

Diff for: variants/lopy4/pins_arduino.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
#define LORA_MISO 19 // GPIO19 - SX1276 MISO
1717
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
1818
#define LORA_CS 18 // GPIO18 - SX1276 CS
19-
#define LORA_IO0 23 // GPIO23 - SX1276 IO0
20-
#define LORA_IO1 23 // GPIO23 - SX1276 IO1 tied by diode to IO0
21-
#define LORA_IO2 23 // GPIO23 - SX1276 IO2 tied by diode to IO0
19+
#define LORA_IRQ 23 // GPIO23 - SX1276 IO0
20+
#define LORA_IO0 LORA_IRQ // alias
21+
#define LORA_IO1 LORA_IRQ // tied by diode to IO0
22+
#define LORA_IO2 LORA_IRQ // tied by diode to IO0
23+
#define LORA_RST NOT_A_PIN
2224

2325
static const uint8_t LED_BUILTIN = 0; // ->2812 RGB !!!
2426
#define BUILTIN_LED LED_BUILTIN // backward compatibility
@@ -31,6 +33,7 @@ static const uint8_t RX = 3;
3133
static const uint8_t SDA = 12;
3234
static const uint8_t SCL = 13;
3335

36+
static const uint8_t SS = 18;
3437
static const uint8_t MOSI = 22;
3538
static const uint8_t MISO = 37;
3639
static const uint8_t SCK = 13;

Diff for: variants/t-beam/pins_arduino.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
1818
#define LORA_CS 18 // GPIO18 - SX1276 CS
1919
#define LORA_RST 23 // GPIO23 - SX1276 RST
20-
#define LORA_IO0 26 // GPIO26 - SX1276 IO0
20+
#define LORA_IRQ 26 // GPIO26 - SX1276 IO0
21+
#define LORA_IO0 LORA_IRQ // alias
2122
#define LORA_IO1 33 // GPIO33 - SX1276 IO1
2223
#define LORA_IO2 32 // GPIO32 - SX1276 IO2
2324

0 commit comments

Comments
 (0)