Added functionality for M5Stack Core2 V1 AXP192 PMU chip #20
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.
My first attempt at a pull request - so apologies if I'm doing this wrong.
I forked your repo and then worked on my copy to add a new component AXP192
Inside that are sensor, switch and output folders
I have tested on my own Core 2 V1 unit but obviously wold be good to try with some others.
Still WIP but the sensors work
Battery level based on battery voltage during discharge and charge current during charging
Display backlight, Geen LED and vibration motor control all work.
Virtual GPIO pins for Display and Touchscreen reset functionality are beyond me (in terms of init.py syntax
hunks of redundant code still need to be removed (I based my work on AXP192 datasheet and the Core2 circuit schematic and your AXP2101 component
Test .yaml file and README.md contain example code of using the new component