From 90f01fa6e080bd043c64c2fc06fe66a8997c8254 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 14 May 2018 20:53:35 +0200 Subject: [PATCH] FiPy support added --- platformio.ini | 1 + src/hal/fipy.h | 2 +- src/hal/lopy.h | 2 +- src/hal/lopy4.h | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 8efbc391..59b9fbc3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,6 +16,7 @@ env_default = heltec_wifi_lora_32 ;env_default = ttgov2 ;env_default = lopy ;env_default = lopy4 +;env_default = fipy ;env_default = lolin32lite_lora ;env_default = lolin32_lora ; diff --git a/src/hal/fipy.h b/src/hal/fipy.h index cccee3fb..7622d811 100644 --- a/src/hal/fipy.h +++ b/src/hal/fipy.h @@ -1,7 +1,7 @@ // Hardware related definitions for Pycom FiPy Board #define CFG_sx1272_radio 1 -#define HAS_LED NOT_A_PIN // FiPy4 has no on board LED, so we use RGB LED +#define HAS_LED NOT_A_PIN // FiPy has no on board LED, so we use RGB LED #define HAS_RGB_LED 0 // WS2812B RGB LED on GPIO0 // Hardware pin definitions for Pycom FiPy board diff --git a/src/hal/lopy.h b/src/hal/lopy.h index 3e34dc8f..219a3a96 100644 --- a/src/hal/lopy.h +++ b/src/hal/lopy.h @@ -12,7 +12,7 @@ #define RST 18 #define DIO0 23 // LoRa IRQ #define DIO1 23 // workaround -#define DIO2 LMIC_UNUSED_PIN // 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 diff --git a/src/hal/lopy4.h b/src/hal/lopy4.h index 223e26b5..aaed263a 100644 --- a/src/hal/lopy4.h +++ b/src/hal/lopy4.h @@ -12,7 +12,7 @@ #define RST LMIC_UNUSED_PIN #define DIO0 23 // LoRa IRQ #define DIO1 23 // workaround -#define DIO2 LMIC_UNUSED_PIN // 23 workaround +#define DIO2 LMIC_UNUSED_PIN // select WIFI antenna (internal = onboard / external = u.fl socket) #define HAS_ANTENNA_SWITCH 21 // pin for switching wifi antenna