You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/Nicla_System/src/Nicla_System.h
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
#include<mbed.h>
9
9
#include<I2C.h>
10
10
11
+
// Deprecated. Whether or not to use a write operation by default
12
+
// can now be controlled with the default paramter of pingI2C().
11
13
#defineUSE_FASTCHG_TO_KICK_WATCHDOG1
12
14
13
15
enumclassOperatingStatus {
@@ -38,6 +40,15 @@ enum class BatteryTemperature {
38
40
classnicla {
39
41
40
42
public:
43
+
44
+
/**
45
+
* @brief Initializes the Nicla Sense ME board.
46
+
*
47
+
* @param mountedOnMkr Defines whether the board is mounted as a shield on a MKR board or not.
48
+
* This is used to drive the pin high that connects to the reset pin
49
+
* of the MKR board to prevent it from resetting.
50
+
* @return true if the board is initialized successfully.
51
+
*/
41
52
staticboolbegin(bool mountedOnMkr = false);
42
53
43
54
/**
@@ -81,9 +92,9 @@ class nicla {
81
92
* A safe default charging current value that works for most common LiPo batteries is 0.5C, which means charging at a rate equal to half of the battery's capacity.
82
93
* For example, a 200mAh battery could be charged at 100mA (0.1A).
83
94
* This charging rate is generally safe for most LiPo batteries and provides a good balance between charging speed and battery longevity.
84
-
* @note Make sure to call setBatteryNTCEnabled(false) if your battery does not have an NTC thermistor.
85
-
* Otherwise the charging will be disabled due to the NTC thermistor not being connected.
95
+
* @note If your battery doesn't have an NTC thermistor, the charging speed will be limited to ~35mA.
86
96
* @return true If the fast charging is enabled successfully. False, otherwise.
0 commit comments