-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add Battery Status Display to Session View 🔋🪫 #3310
Draft
m0nkmaster
wants to merge
57
commits into
SynthstromAudible:community
Choose a base branch
from
m0nkmaster:power-level
base: community
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+389
−57
Draft
Changes from 55 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
a76d2f6
Battery level indicator, wip
m0nkmaster 9b2476e
Merge remote-tracking branch 'origin/community' into power-level
m0nkmaster b9fe4c3
Refactor battery status display logic
m0nkmaster 23e88dc
Added displayPotentialBatteryChange method to ensure the display upda…
m0nkmaster 1b59e0d
Re-add makeBattLEDSolid:
m0nkmaster 8ddef37
Removed duplicate drawBatteryStatus from oled.cpp and added back some…
m0nkmaster 42bf0bc
Clean up
m0nkmaster f2b668c
Revert OLED display positioning
m0nkmaster 9688eaa
renamed drawBatteryStatus to displayBatteryStatus, added displayPoten…
m0nkmaster f9807ae
Better battery UI
m0nkmaster ee1b12f
Farting about with battery icons.
m0nkmaster deb6983
Battery formatting
m0nkmaster 80e823c
Battery alignment
m0nkmaster 4ed4196
Battery alignment
m0nkmaster e593b7e
Battery alignment
m0nkmaster 4504444
Power
m0nkmaster 36a7e14
Use batteryCurrentRegion to drive battery power icon
m0nkmaster 6ff7419
Use batteryCurrentRegion to drive battery power icon
m0nkmaster a5bff63
Minor spacing
m0nkmaster 14d82b6
Minor spacing
m0nkmaster 00130d9
Minor spacing
m0nkmaster 5610514
Alter battery thresholds
m0nkmaster ab94d29
Refactor battery status display in SessionView: Adjusted spacing for …
m0nkmaster 912025b
USB power check
m0nkmaster 57356bf
Add USB power status check
m0nkmaster 21f6447
improve comments and remove unused variable.
m0nkmaster f8a4d62
USB power check
m0nkmaster 2a7707e
Battery level indicator, wip
m0nkmaster 32c4ec1
Refactor battery status display logic
m0nkmaster ffea187
Added displayPotentialBatteryChange method to ensure the display upda…
m0nkmaster 5061ae4
Re-add makeBattLEDSolid:
m0nkmaster c625409
Removed duplicate drawBatteryStatus from oled.cpp and added back some…
m0nkmaster 9113638
Clean up
m0nkmaster a456acc
Revert OLED display positioning
m0nkmaster a9e188f
renamed drawBatteryStatus to displayBatteryStatus, added displayPoten…
m0nkmaster dfd4cce
Better battery UI
m0nkmaster efcda76
Farting about with battery icons.
m0nkmaster b0f21a8
Battery formatting
m0nkmaster fe2b010
Battery alignment
m0nkmaster a48c3a6
Battery alignment
m0nkmaster ec20e13
Battery alignment
m0nkmaster 2d0b2b5
Power
m0nkmaster f3e2c77
Use batteryCurrentRegion to drive battery power icon
m0nkmaster fc5174f
Use batteryCurrentRegion to drive battery power icon
m0nkmaster 98ae6ec
Minor spacing
m0nkmaster 82b5bad
Minor spacing
m0nkmaster c80e971
Minor spacing
m0nkmaster 47b182c
Alter battery thresholds
m0nkmaster b249ed3
Refactor battery status display in SessionView: Adjusted spacing for …
m0nkmaster 8e29114
USB power check
m0nkmaster 79a6a94
Add USB power status check
m0nkmaster 98bb748
improve comments and remove unused variable.
m0nkmaster 744e530
USB power check
m0nkmaster 74b22b1
Merge branch 'power-level' of github.com:m0nkmaster/DelugeFirmware in…
m0nkmaster 32d9197
Merge branch 'SynthstromAudible:community' into power-level
m0nkmaster 8ab6085
Created a power manager class to handle all voltage reading
m0nkmaster f490d21
Latest changes to battery calculations
m0nkmaster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "RZA1/usb/r_usb_basic/r_usb_basic_if.h" | ||
#include "RZA1/usb/r_usb_basic/src/driver/inc/r_usb_basic_define.h" | ||
#include "RZA1/usb/r_usb_basic/src/driver/inc/r_usb_extern.h" | ||
|
||
uint16_t check_usb_power_status(void) { | ||
uint16_t status = usb_pstd_chk_vbsts(); | ||
return status; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
uint16_t check_usb_power_status(void); | ||
|
||
#define USB_POWER_ATTACHED 0x0040u | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need it here as I see you already have it in session view :: graphics routine