From 52e4dbca28acfab852b4ff418ffc4ffa02119bd8 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 30 Sep 2018 17:48:51 +0200 Subject: [PATCH 1/2] edit lopy4.h --- src/hal/lopy4.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hal/lopy4.h b/src/hal/lopy4.h index cef619f0..5a4fffa0 100644 --- a/src/hal/lopy4.h +++ b/src/hal/lopy4.h @@ -27,10 +27,10 @@ //#define GPS_ADDR 0x10 // uncomment this only if your LoPy runs on a EXPANSION BOARD -//#define HAS_LED GPIO_NUM_12 // use if LoPy is on Expansion Board, this has a user LED -//#define LED_ACTIVE_LOW 1 // use if LoPy is on Expansion Board, this has a user LED -//#define HAS_BUTTON GPIO_NUM_13 // user button on expansion board -//define BUTTON_PULLUP 1 // Button need pullup instead of default pulldown -//#define HAS_BATTERY_PROBE ADC1_GPIO39_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7 -//#define BATT_FACTOR 2 // voltage divider 1MOhm/1MOhm -> expansion board 3.0 +#define HAS_LED GPIO_NUM_12 // use if LoPy is on Expansion Board, this has a user LED +#define LED_ACTIVE_LOW 1 // use if LoPy is on Expansion Board, this has a user LED +#define HAS_BUTTON GPIO_NUM_13 // user button on expansion board +#define BUTTON_PULLUP 1 // Button need pullup instead of default pulldown +#define HAS_BATTERY_PROBE ADC1_GPIO39_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7 +#define BATT_FACTOR 2 // voltage divider 1MOhm/1MOhm -> expansion board 3.0 //#define BATT_FACTOR 4 // voltage divider 115kOhm/56kOhm -> expansion board 2.0 \ No newline at end of file From 7858270d9405d34b9e24f5a9db819b2d46870b29 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 30 Sep 2018 17:50:45 +0200 Subject: [PATCH 2/2] edit lopy.h --- src/hal/lopy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hal/lopy.h b/src/hal/lopy.h index 545ac8ab..97f3119c 100644 --- a/src/hal/lopy.h +++ b/src/hal/lopy.h @@ -29,7 +29,7 @@ //#define HAS_LED GPIO_NUM_12 // use if LoPy is on Expansion Board, this has a user LED //#define LED_ACTIVE_LOW 1 // use if LoPy is on Expansion Board, this has a user LED //#define HAS_BUTTON GPIO_NUM_13 // user button on expansion board -//define BUTTON_PULLUP 1 // Button need pullup instead of default pulldown +//#define BUTTON_PULLUP 1 // Button need pullup instead of default pulldown //#define HAS_BATTERY_PROBE ADC1_GPIO39_CHANNEL // battery probe GPIO pin -> ADC1_CHANNEL_7 //#define BATT_FACTOR 2 // voltage divider 1MOhm/1MOhm -> expansion board 3.0 //#define BATT_FACTOR 4 // voltage divider 115kOhm/56kOhm -> expansion board 2.0