2018-03-18 19:45:17 +01:00
|
|
|
// Hardware related definitions for Pycom LoPy Board (not: LoPy4)
|
|
|
|
|
|
|
|
#define CFG_sx1276_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-06-09 21:15:35 +02:00
|
|
|
#define HAS_RGB_LED GPIO_NUM_0 // WS2812B RGB LED on GPIO0
|
2018-03-18 19:45:17 +01:00
|
|
|
|
2018-06-09 23:10:40 +02:00
|
|
|
// use only if your LoPy lives on a Pytrack expansion board
|
|
|
|
//#define HAS_GPS 1
|
|
|
|
//#define GPS_I2C GPIO_NUM_9, GPIO_NUM_8 // SDA, SCL
|
|
|
|
//#define HAS_BUTTON GPIO_NUM_4
|
|
|
|
|
2018-03-18 19:45:17 +01:00
|
|
|
// Hardware pin definitions for Pycom LoPy4 board
|
2018-06-09 21:15:35 +02:00
|
|
|
#define PIN_SPI_SS GPIO_NUM_18
|
|
|
|
#define PIN_SPI_MOSI GPIO_NUM_27
|
|
|
|
#define PIN_SPI_MISO GPIO_NUM_19
|
|
|
|
#define PIN_SPI_SCK GPIO_NUM_5
|
2018-03-18 19:45:17 +01:00
|
|
|
#define RST LMIC_UNUSED_PIN
|
2018-06-09 21:15:35 +02:00
|
|
|
#define DIO0 GPIO_NUM_23 // LoRa IRQ
|
|
|
|
#define DIO1 GPIO_NUM_23 // workaround
|
2018-05-14 20:53:35 +02:00
|
|
|
#define DIO2 LMIC_UNUSED_PIN
|
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 21 // pin for switching wifi antenna
|
|
|
|
#define WIFI_ANTENNA 0 // 0 = internal, 1 = external
|