3
3
4
4
#include < Arduino.h>
5
5
#include < Arduino_PF1550.h>
6
- #include " wireUtils .h"
6
+ #include " WireUtils .h"
7
7
8
8
9
9
#if defined(ARDUINO_PORTENTA_C33)
@@ -199,25 +199,27 @@ class Board {
199
199
*/
200
200
void deepSleepUntilWakeupEvent ();
201
201
202
- #if defined(ARDUINO_PORTENTA_C33)
203
202
/* *
204
203
* @brief Toggle the peripherals' power on Portenta C33 (ADC, RGB LED, Secure Element, Wifi and Bluetooth).
205
204
* @param on True to turn on the power, false to turn it off.
206
205
*/
207
206
void setAllPeripheralsPower (bool on);
208
207
208
+
209
209
/* *
210
210
* @brief Toggles the communication peripherials' power on Portenta C33 (Wifi, Bluetooth and Secure Element)
211
211
* @param on True to turn on the power, false to turn it off.
212
212
*/
213
213
void setCommunicationPeripheralsPower (bool on);
214
214
215
+ #if defined(ARDUINO_PORTENTA_C33)
215
216
/* *
216
217
* @brief Toggles the power of the analog digital converter on Portenta C33.
217
218
* @param on True to turn on the power, false to turn it off.
218
219
*/
219
220
void setAnalogDigitalConverterPower (bool on);
220
221
222
+ #endif
221
223
/* *
222
224
* @brief Set the reference voltage on Portenta C33. This value is used by the ADC to convert analog values to digital values.
223
225
* This can be particularly useful to increase the accuracy of the ADC when working with low voltages
@@ -226,7 +228,8 @@ class Board {
226
228
* @return True if the voltage was set successfully, false otherwise.
227
229
*/
228
230
bool setReferenceVoltage (float voltage);
229
- #endif
231
+
232
+ // TODO add function to shut down the fuel gauge / and hibernate mode
230
233
231
234
private:
232
235
static uint8_t getRailVoltage (float voltage, int context);
0 commit comments