Skip to content

Revamp API #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 56 commits into from
Jun 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
0b710da
Fix compile error in deep sleep example
sebromero May 7, 2024
9a87c65
Rename wire utils file
sebromero May 8, 2024
bdf5ba6
Apply style guide to enums
sebromero May 8, 2024
b366d88
Update docs in charger sketch
sebromero May 8, 2024
0ade3a4
Refactorings
sebromero May 8, 2024
8505b4c
Simplify API
sebromero May 8, 2024
7a61e9f
Refactor example
sebromero May 8, 2024
c36ad19
Use new target identifier for M4
sebromero May 8, 2024
68623a0
Revamp standby example
sebromero May 8, 2024
9cbeed3
Rename sketches
sebromero May 8, 2024
ae3693e
Use new m4 define
sebromero May 8, 2024
5dc466a
Update readme
sebromero May 8, 2024
375d186
Add documentation to low power sketch
sebromero May 10, 2024
c567771
Add fuel gauge driver
sebromero May 10, 2024
1a42481
Add comments
sebromero May 10, 2024
1c2a957
Enable shutdown mode of fuel gauge
sebromero May 10, 2024
a444d96
Add destructor for Board
sebromero May 13, 2024
6a9cae5
Fix compile errors
sebromero May 13, 2024
a38f4a3
Remove double instantiation
sebromero May 13, 2024
24de629
Reorder print statements
sebromero May 13, 2024
539baaa
Improve readability
sebromero May 13, 2024
eb7cd60
Refactor C33 RTC wakeup example
sebromero May 13, 2024
7b9c6d7
Removed unused variable
sebromero May 13, 2024
e4b3750
Replace references to old repo location
sebromero May 13, 2024
b297792
Fix CI workflow for compiling sketches
sebromero May 13, 2024
a2a5092
Fix: include file for C33 low power library is called "Arduino_LowPow…
aentinger May 15, 2024
3409f89
Reorganize RTC standby example
sebromero May 15, 2024
d716bd0
Only end I2C when turning off power
sebromero May 15, 2024
7de86c5
Add snippet to handle non-callback alarm
sebromero May 15, 2024
9fbd9b3
Add commented out code that may be required
sebromero May 15, 2024
ded196a
fixed WakeFromRTC_C33
cristidragomir97 May 17, 2024
bb6a43e
Use RTC alarm without callback
sebromero May 23, 2024
3bad6de
Apply adjustments from the library review
cristidragomir97 Jun 3, 2024
f6b6057
fixed compilation workflow
cristidragomir97 Jun 3, 2024
cd4b7e6
Fix compile-examples.yaml
cristidragomir97 Jun 3, 2024
d4020b8
Adjust indentation
sebromero Jun 3, 2024
71326df
Make I2C address configurable
sebromero Jun 4, 2024
a61a6e5
Extract hibernate features into function
sebromero Jun 4, 2024
cc79c9e
Change parameter order
sebromero Jun 4, 2024
0a8a7e2
Add charging complete function
sebromero Jun 4, 2024
31c8bb1
Remove charging complete function from battery API
sebromero Jun 4, 2024
6f5d4e0
Remove obsolete comment
sebromero Jun 4, 2024
f098ca8
Preserve hibernation config
sebromero Jun 4, 2024
195d4fe
Add function to shut down fuel gauge
sebromero Jun 4, 2024
2f2d900
Fix compile issue
sebromero Jun 4, 2024
2747199
Adjust comments
sebromero Jun 4, 2024
6911507
Use correct Wire instance depending on board
sebromero Jun 4, 2024
3e615f1
Command fuel gauge shutdown
sebromero Jun 4, 2024
6631167
Convert keys to lists
sebromero Jun 4, 2024
560d265
Add missing library to dependencies
sebromero Jun 4, 2024
598c6ce
Add missing info to properties file
sebromero Jun 4, 2024
424e3fd
Swap example sketches in workflow file
sebromero Jun 4, 2024
5ca3c24
Eliminate extra white space
sebromero Jun 4, 2024
4db9acd
Add documentation
sebromero Jun 4, 2024
a1e512f
Add documentation
sebromero Jun 4, 2024
887a061
Update documentation
actions-user Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use new m4 define
  • Loading branch information
sebromero committed Jun 4, 2024
commit ae3693e076fb7bf4ad5e28a6b8ad5004c519ec35
6 changes: 3 additions & 3 deletions examples/Powershell/Powershell.ino
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ void setRailVoltage(std::vector<String> args){
#endif

} else if (rail == "H7_external"){
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
board.setExternalVoltage(voltage);
#else
Serial.println("Current board is not an arduino portenta h7");
#endif

} else if (rail == "nicla_external"){
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
board.setExternalVoltage(voltage);
#else
Serial.println("Current board is not an arduino nicla vision");
Expand Down Expand Up @@ -150,7 +150,7 @@ void toggleRail(std::vector<String> args){
#endif

} else if (rail == "H7_external"){
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_GENERIC_STM32H747_M4)
board.setExternalPowerEnabled(on);
#else
Serial.println("Current board is not an arduino portenta h7");
Expand Down