From 22ba119bf5818d1bc03fbd665f0a524984a5638e Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Tue, 3 Apr 2018 16:41:23 +0200 Subject: [PATCH] updated board definitions for LoPy/LoPy4 --- platformio.ini | 7 +++++-- src/hal/lopy.h | 3 ++- src/hal/lopy4.h | 3 ++- src/main.h | 4 ++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/platformio.ini b/platformio.ini index d0ed9d05..b2cb2bfa 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,8 +12,8 @@ [platformio] ;env_default = heltec_wifi_lora_32 ;env_default = ttgov1 -env_default = ttgov2 -;env_default = lopy +;env_default = ttgov2 +env_default = lopy ;env_default = lopy4 ;env_default = lolin32lite_lora ;env_default = lolin32_lora @@ -46,6 +46,7 @@ platform = espressif32 board = esp32dev framework = arduino monitor_baud = 115200 +upload_speed = 921600 lib_deps = U8g2 ESP32 BLE Arduino@>=0.4.9 @@ -93,6 +94,7 @@ platform = espressif32 board = esp32dev framework = arduino monitor_baud = 115200 +upload_speed = 921600 lib_deps = U8g2@>2.21.7 ESP32 BLE Arduino@>=0.4.9 @@ -116,6 +118,7 @@ platform = espressif32 board = esp32dev framework = arduino monitor_baud = 115200 +upload_speed = 921600 lib_deps = U8g2@>2.21.7 ESP32 BLE Arduino@>=0.4.9 diff --git a/src/hal/lopy.h b/src/hal/lopy.h index 00a6be4d..47ba20f9 100644 --- a/src/hal/lopy.h +++ b/src/hal/lopy.h @@ -1,7 +1,8 @@ // Hardware related definitions for Pycom LoPy Board (not: LoPy4) #define CFG_sx1272_radio 1 -#define HAS_RGB_LED 0 // WS2812B RGB LED +#define HAS_LED NOT_A_PIN // we use RGB LED on LoPy +#define HAS_RGB_LED 0 // WS2812B RGB LED on GPIO0 // Hardware pin definitions for Pycom LoPy board #define PIN_SPI_SS 17 diff --git a/src/hal/lopy4.h b/src/hal/lopy4.h index 6ca8ef21..0764dd05 100644 --- a/src/hal/lopy4.h +++ b/src/hal/lopy4.h @@ -1,7 +1,8 @@ // Hardware related definitions for Pycom LoPy Board (not: LoPy4) #define CFG_sx1276_radio 1 -#define HAS_RGB_LED 0 // WS2812B RGB LED +#define HAS_LED NOT_A_PIN // we use RGB LED on LoPy4 +#define HAS_RGB_LED 0 // WS2812B RGB LED on GPIO0 // Hardware pin definitions for Pycom LoPy4 board #define PIN_SPI_SS 18 diff --git a/src/main.h b/src/main.h index a99359f5..94c49006 100644 --- a/src/main.h +++ b/src/main.h @@ -3,7 +3,7 @@ #define PROGNAME "PAXCNT" // Verbose enables serial output -//#define VERBOSE 1 // comment out to silence the device, for mute use build option +#define VERBOSE 1 // comment out to silence the device, for mute use build option // set this to include BLE counting and vendor filter functions #define VENDORFILTER 1 // comment out if you want to count things, not people @@ -29,7 +29,7 @@ #define RCMDPORT 2 // LoRaWAN Port on which device listenes for remote commands // Default RGB LED luminosity (in %) -#define RGBLUMINOSITY 50 // 50% +#define RGBLUMINOSITY 30 // 30% // LMIC settings // define hardware independent LMIC settings here, settings of standard library in /lmic/config.h will be ignored