Repository navigation
feat(pico4-power): the status LED as PICO OS sets it - #58
Merged
Merged
Conversation
status-led follows the battery, the charger and the screen as PICO OS's two writers of the LED do, in their order: the battery service's colour while charging (red to 20 %, amber to 98 %, green from 99 %) and its red blink at a warm or cold battery; the power manager's red blink below 20 %, blue with the screen on and off with it on battery; the charger program's colours in charger mode; and init's blue blink at shutdown. It drives rgb:status, the PM8150L's tri-colour LED, and stays inactive on a kernel without it. For overpressure/phoenix#183
2 of 3 tasks
…ition for the power manager's broadcast
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
status-led follows the battery, the charger and the screen the way PICO OS's two LED writers do, in their order:
It drives rgb:status, the PM8150L's tri-colour LED (overpressure/linux, phoenix/status-led), and doesn't start on a kernel without it.
On the headset, with that device tree: green on the cable at full charge, blue on battery, off in standby, blue on wake, green again once plugged in. Not seen yet: the low-battery and temperature blinks, charger mode and the shutdown blink, which are covered by host tests only.
For overpressure/phoenix#183