Skip to content

Conversation

@jimwsmith
Copy link

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

jimwsmith and others added 12 commits January 4, 2026 21:09
Display baklight OK as a light
Display powers up (as long as it was powering up before)
Vibration motor controllable as a light

Green LED still to do
GPIO still to do
Battery voltage, temp and % giving a value but values don't make sense
Correct YAML code block formatting in README.
…ng discharge and battery charge current during charging.

Added configurable levels for 0 and 100% thresholds for voltage and current, together with defaults
@lboue
Copy link
Contributor

lboue commented Jan 7, 2026

Great, I'll try that out as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants