bugfix hal file heltec, heltecv2, lop,y, lopy4
This commit is contained in:
parent
551737cc89
commit
911f03c6c5
@ -24,5 +24,12 @@
|
||||
// additional definitions for LMIC
|
||||
#define LORA_IO1 (33)
|
||||
#define LORA_IO2 LMIC_UNUSED_PIN
|
||||
#define LORA_SCK (5)
|
||||
#define LORA_MOSI (27)
|
||||
#define LORA_MISO (19)
|
||||
#define LORA_CS (18)
|
||||
#define LORA_RST (14)
|
||||
#define LORA_IRQ (26)
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -26,5 +26,11 @@
|
||||
// additional definitions for LMIC
|
||||
#define LORA_IO1 (35)
|
||||
#define LORA_IO2 (34)
|
||||
#define LORA_SCK (5)
|
||||
#define LORA_MOSI (27)
|
||||
#define LORA_MISO (19)
|
||||
#define LORA_CS (18)
|
||||
#define LORA_RST (14)
|
||||
#define LORA_IRQ (26)
|
||||
|
||||
#endif
|
||||
|
@ -14,8 +14,16 @@
|
||||
|
||||
// Pins for LORA chip SPI interface come from board file, we need some
|
||||
// additional definitions for LMIC
|
||||
#define LORA_IO1 (23) // Pin tied via diode to DIO0
|
||||
#define LORA_IO2 (23) // Pin tied via diode to DIO0
|
||||
#define LORA_SCK 5 // GPIO5 - SX1276 SCK
|
||||
#define LORA_MISO 19 // GPIO19 - SX1276 MISO
|
||||
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
|
||||
#define LORA_CS 17 // GPIO17 - SX1276 CS
|
||||
#define LORA_RST 18 // GPIO18 - SX1276 RST
|
||||
#define LORA_IRQ 23 // GPIO23 - SX1276 IO0
|
||||
#define LORA_IO0 LORA_IRQ // alias
|
||||
#define LORA_IO1 LORA_IRQ // tied by diode to IO0
|
||||
#define LORA_IO2 LORA_IRQ // tied by diode to IO0
|
||||
|
||||
|
||||
// select WIFI antenna (internal = onboard / external = u.fl socket)
|
||||
#define HAS_ANTENNA_SWITCH (16) // pin for switching wifi antenna
|
||||
|
@ -23,8 +23,15 @@
|
||||
|
||||
// Pins for LORA chip SPI interface come from board file, we need some
|
||||
// additional definitions for LMIC
|
||||
#define LORA_IO1 (23) // Pin tied via diode to DIO0
|
||||
#define LORA_IO2 (23) // Pin tied via diode to DIO0
|
||||
#define LORA_SCK 5 // GPIO5 - SX1276 SCK
|
||||
#define LORA_MISO 19 // GPIO19 - SX1276 MISO
|
||||
#define LORA_MOSI 27 // GPIO27 - SX1276 MOSI
|
||||
#define LORA_CS 18 // GPIO18 - SX1276 CS
|
||||
#define LORA_IRQ 23 // GPIO23 - SX1276 IO0
|
||||
#define LORA_IO0 LORA_IRQ // alias
|
||||
#define LORA_IO1 LORA_IRQ // tied by diode to IO0
|
||||
#define LORA_IO2 LORA_IRQ // tied by diode to IO0
|
||||
#define LORA_RST NOT_A_PIN
|
||||
|
||||
// select WIFI antenna (internal = onboard / external = u.fl socket)
|
||||
#define HAS_ANTENNA_SWITCH (21) // pin for switching wifi antenna (P12)
|
||||
|
Loading…
Reference in New Issue
Block a user