// Hardware related definitions for Pycom LoPy Board (not: LoPy4) #define CFG_sx1272_radio 1 #define HAS_LED NOT_A_PIN // LoPy4 has no on board LED, so we use RGB LED on LoPy4 #define HAS_RGB_LED GPIO_NUM_0 // WS2812B RGB LED on GPIO0 // !!EXPERIMENTAL - not tested yet!! // uncomment this only if your LoPy runs on a Pytrack expansion board with GPS // see http://www.quectel.com/UploadImage/Downlad/Quectel_L76-L_I2C_Application_Note_V1.0.pdf //#define HAS_GPS 1 //#define GPS_QUECTEL_L76 GPIO_NUM_25, GPIO_NUM_26 // SDA (P22), SCL (P21) //#define GPS_I2C_ADDRESS_READ 0x21 //#define GPS_I2C_ADDRESS_WRITE 0x20 //#define HAS_BUTTON GPIO_NUM_37 // (P14) //#define BUTTON_PULLUP 1 // Button need pullup instead of default pulldown // Hardware pin definitions for Pycom LoPy board #define PIN_SPI_SS GPIO_NUM_17 #define PIN_SPI_MOSI GPIO_NUM_27 #define PIN_SPI_MISO GPIO_NUM_19 #define PIN_SPI_SCK GPIO_NUM_5 #define RST GPIO_NUM_18 #define DIO0 GPIO_NUM_23 // LoRa IRQ #define DIO1 GPIO_NUM_23 // workaround #define DIO2 LMIC_UNUSED_PIN // select WIFI antenna (internal = onboard / external = u.fl socket) #define HAS_ANTENNA_SWITCH 16 // pin for switching wifi antenna #define WIFI_ANTENNA 0 // 0 = internal, 1 = external