From f6dd6c6467f01439c58211e1deab30c87639a145 Mon Sep 17 00:00:00 2001 From: DHJeff Date: Tue, 4 Jul 2017 11:35:22 +0800 Subject: [PATCH 1/2] Modified BAT example including stm32pwr library --- .../examples/BatteryVoltageValue/BatteryVoltageValue.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino b/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino index 08ebd4d..e84cbd7 100644 --- a/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino +++ b/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino @@ -5,9 +5,8 @@ bat library. This example allows you to get Battery Voltage Value of Primo - board. Please download ArduinoLowPower library from library manager, - disabling STM32 enter to standby mode to avoid Primo board enter to - standby mode when Primo board is powered only by battery. + board, disabling STM32 enter to standby mode to avoid Primo board + enter to standby mode when Primo board is powered only by battery. Primo board is able to send voltage value over serial port or BLE serial, Create UART service compatible with Nordic's *nRF Toolbox* and Adafruit's *Bluefruit LE* iOS/Android apps. You can also use another board with @@ -20,7 +19,7 @@ #include #include #include -#include +#include #include @@ -38,7 +37,7 @@ void setup() { // start BLE serial bleSerial.begin(); // disable STM32 enter to standby mode - LowPower.disableStm32Standby(); + stm32pwr.disableStandbyMode(); // initialize the LED pin as an output pinMode(LED_BUILTIN, OUTPUT); } From 591fd361f3fc6135eef230b5d87e6acabc895c8a Mon Sep 17 00:00:00 2001 From: DHJeff Date: Tue, 25 Jul 2017 12:12:32 +0800 Subject: [PATCH 2/2] Modified comment in BatteryVoltageValue example --- .../BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino b/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino index e84cbd7..b58e457 100644 --- a/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino +++ b/libraries/BAT/examples/BatteryVoltageValue/BatteryVoltageValue.ino @@ -5,8 +5,8 @@ bat library. This example allows you to get Battery Voltage Value of Primo - board, disabling STM32 enter to standby mode to avoid Primo board - enter to standby mode when Primo board is powered only by battery. + board, disabling STM32 enter to standby mode when Primo board is powered + only by battery. Primo board is able to send voltage value over serial port or BLE serial, Create UART service compatible with Nordic's *nRF Toolbox* and Adafruit's *Bluefruit LE* iOS/Android apps. You can also use another board with