2018-05-14 20:31:29 +02:00
|
|
|
// Hardware related definitions for Pycom FiPy Board
|
2018-05-14 18:14:59 +02:00
|
|
|
|
2018-07-14 20:07:33 +02:00
|
|
|
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
|
|
|
|
#define HAS_SPI 1 // comment out if device shall not send data via SPI
|
|
|
|
|
2018-05-14 18:14:59 +02:00
|
|
|
#define CFG_sx1272_radio 1
|
2018-07-14 20:07:33 +02:00
|
|
|
#define HAS_LED NOT_A_PIN // FiPy has no on board LED, so we use RGB LED
|
|
|
|
#define HAS_RGB_LED GPIO_NUM_0 // WS2812B RGB LED on GPIO0
|
|
|
|
#define BOARD_HAS_PSRAM // use extra 4MB extern RAM
|
2018-05-14 18:14:59 +02:00
|
|
|
|
2018-05-14 20:31:29 +02:00
|
|
|
// Hardware pin definitions for Pycom FiPy board
|
2018-07-14 20:07:33 +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
|
|
|
|
#define RST LMIC_UNUSED_PIN
|
|
|
|
#define DIO0 GPIO_NUM_23 // LoRa IRQ
|
|
|
|
#define DIO1 GPIO_NUM_23 // workaround
|
|
|
|
#define DIO2 LMIC_UNUSED_PIN
|
2018-05-14 18:14:59 +02:00
|
|
|
|
|
|
|
// select WIFI antenna (internal = onboard / external = u.fl socket)
|
2018-07-14 20:07:33 +02:00
|
|
|
#define HAS_ANTENNA_SWITCH GPIO_NUM_21 // pin for switching wifi antenna
|
|
|
|
#define WIFI_ANTENNA 0 // 0 = internal, 1 = external
|