2018-03-18 19:45:17 +01:00
|
|
|
// Hardware related definitions for Pycom LoPy Board (not: LoPy4)
|
|
|
|
|
|
|
|
#define CFG_sx1272_radio 1
|
2018-04-03 16:54:58 +02:00
|
|
|
#define HAS_LED NOT_A_PIN // LoPy4 has no on board LED, so we use RGB LED on LoPy4
|
2018-04-03 16:41:23 +02:00
|
|
|
#define HAS_RGB_LED 0 // WS2812B RGB LED on GPIO0
|
2018-03-18 19:45:17 +01:00
|
|
|
|
|
|
|
// Hardware pin definitions for Pycom LoPy board
|
|
|
|
#define PIN_SPI_SS 17
|
|
|
|
#define PIN_SPI_MOSI 27
|
|
|
|
#define PIN_SPI_MISO 19
|
|
|
|
#define PIN_SPI_SCK 5
|
|
|
|
#define RST 18
|
|
|
|
#define DIO0 23 // LoRa IRQ
|
|
|
|
#define DIO1 23 // workaround
|
2018-04-28 12:13:00 +02:00
|
|
|
#define DIO2 LMIC_UNUSED_PIN // 23 workaround
|
2018-03-18 19:45:17 +01:00
|
|
|
|
|
|
|
// select WIFI antenna (internal = onboard / external = u.fl socket)
|
2018-03-24 13:38:43 +01:00
|
|
|
#define HAS_ANTENNA_SWITCH 16 // pin for switching wifi antenna
|
|
|
|
#define WIFI_ANTENNA 0 // 0 = internal, 1 = external
|