cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.69k stars 397 forks source link

[AXPxxx] Add support for AXP2101 and AXP202 #1015

Closed TD-er closed 5 days ago

TD-er commented 5 days ago

Split the code into several sections for AXP192/AXP2101/AXP202

ToDo:

The code for AXP192 should not have changed, so that should probably be safe to use.

!!!The other chips have absolutely NOT been tested on real hardware!!!

Status: "it compiles"

Do NOT run this on real hardware unless you really know what to check for your board!

Fixes: #990

TD-er commented 5 days ago

@cyberman54 Please note the state of this code is "it compiles". So please have a very thorough look before uploading it to some board as I really hope I did not mess up.

cyberman54 commented 5 days ago

Thanks for this work. Merged to new temporary development branch "feature-axp2101". Using for testing.

TD-er commented 5 days ago

Will you continue from here? Or should I try to tweak some more? (from that branch)

cyberman54 commented 5 days ago

please use the feature-axp2102 branch, i will continue and test from here. First, will merge the experimental tsupremes3.hal from development branch with your axp20xx.hal, then check voltages for T-Supreme, and then give it a try.

TD-er commented 5 days ago

Please double/triple check to see if I do toggle the correct DCDC/LDO channels

cyberman54 commented 4 days ago

Please double/triple check to see if I do toggle the correct DCDC/LDO channels

@TD-er Meanwhile, i found some prior art here: https://github.com/meshtastic/firmware/blob/master/src/Power.cpp#L843

This should work, because the purchased T-Beam Supreme S3 came with working Meshtastic firmware preinstalled.