{"id":15142157,"url":"https://github.com/lewisxhe/xpowerslib","last_synced_at":"2025-03-23T14:08:48.105Z","repository":{"id":53856994,"uuid":"518364085","full_name":"lewisxhe/XPowersLib","owner":"lewisxhe","description":"Arduino,CircuitPython,Micropython, esp-idf  library for x-powers power management series","archived":false,"fork":false,"pushed_at":"2024-09-20T01:06:13.000Z","size":5278,"stargazers_count":74,"open_issues_count":0,"forks_count":22,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-29T21:55:20.868Z","etag":null,"topics":["arduino","axp192","axp202","axp2101","bq25896","circuitpython","esp-idf","micropython","sy6970"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lewisxhe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-27T08:01:03.000Z","updated_at":"2024-10-25T08:41:45.000Z","dependencies_parsed_at":"2023-10-11T16:33:28.443Z","dependency_job_id":"cf7f0efb-ee93-4b03-b1de-cc7f515b7255","html_url":"https://github.com/lewisxhe/XPowersLib","commit_stats":{"total_commits":156,"total_committers":4,"mean_commits":39.0,"dds":0.03205128205128205,"last_synced_commit":"f608c0a1123cbeebf4a07eed71953b7710b1d18a"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewisxhe%2FXPowersLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewisxhe%2FXPowersLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewisxhe%2FXPowersLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewisxhe%2FXPowersLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lewisxhe","download_url":"https://codeload.github.com/lewisxhe/XPowersLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245111952,"owners_count":20562512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","axp192","axp202","axp2101","bq25896","circuitpython","esp-idf","micropython","sy6970"],"created_at":"2024-09-26T09:24:02.583Z","updated_at":"2025-03-23T14:08:48.077Z","avatar_url":"https://github.com/lewisxhe.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n\r\n```\r\n __   __     _____                           _      _ _\r\n \\ \\ / /    |  __ \\                         | |    (_) |\r\n  \\ V /_____| |__) |____      _____ _ __ ___| |     _| |__\r\n   \u003e \u003c______|  ___/ _ \\ \\ /\\ / / _ \\ '__/ __| |    | | '_ \\\r\n  / . \\     | |  | (_) \\ V  V /  __/ |  \\__ \\ |____| | |_) |\r\n /_/ \\_\\    |_|   \\___/ \\_/\\_/ \\___|_|  |___/______|_|_.__/\r\n\r\n```\r\n[![Build esp-idf](https://github.com/lewisxhe/XPowersLib/actions/workflows/esp-idf.yml/badge.svg)](https://github.com/lewisxhe/XPowersLib/actions/workflows/esp-idf.yml)\r\n[![Build PlatformIO](https://github.com/lewisxhe/XPowersLib/actions/workflows/pio.yml/badge.svg)](https://github.com/lewisxhe/XPowersLib/actions/workflows/pio.yml)\r\n[![Build Arduino](https://github.com/lewisxhe/XPowersLib/actions/workflows/arduino_ci.yml/badge.svg)](https://github.com/lewisxhe/XPowersLib/actions/workflows/arduino_ci.yml)\r\n[![arduino-library-badge](https://www.ardu-badge.com/badge/XPowersLib.svg?)](https://www.ardu-badge.com/XPowersLib)\r\n\r\n[![LICENSE](https://img.shields.io/github/license/lewisxhe/XPowersLib)](https://github.com/lewisxhe/XPowersLib/blob/master/LICENSE)\r\n[![ISSUES](https://img.shields.io/github/issues/lewisxhe/XPowersLib)](https://github.com/lewisxhe/XPowersLib/issues)\r\n[![FROK](https://img.shields.io/github/forks/lewisxhe/XPowersLib)](https://github.com/lewisxhe/XPowersLib/graphs/contributors)\r\n[![STAR](https://img.shields.io/github/stars/lewisxhe/XPowersLib)](https://github.com/lewisxhe/XPowersLib/stargazers)\r\n[![releases](https://img.shields.io/github/release/lewisxhe/XPowersLib)](https://github.com/lewisxhe/XPowersLib/releases)\r\n\r\n```\r\n🎉 LilyGo invests time and resources to provide this open source code, please support LilyGo \r\nand open source hardware by purchasing products from LilyGo!\r\nWritten by Lewis He for LilyGo. MIT license, all text above must be included in \r\nany redistribution\r\n```\r\n\r\n# ❗️❗️❗️  WARN:\r\n\r\n```\r\n⚠️ Please do not run the example without knowing the external load voltage of the PMU,\r\nit may burn your external load,please check the voltage setting before running the example,\r\nif there is any loss,please bear it by yourself\r\n```\r\n\r\n\r\n✨ Library specially written for XPowers, supporting **CircuitPython**, **Micropython**, **Arduino**, **ESP-IDF**\r\n\r\n✨ Through esp32,esp32s3 verification,other platforms have not been tested. Due to the many functions of the chip,it cannot be verified one by one.\r\n\r\n\r\n# Chip Resource List\r\n\r\n| CHIP       | AXP192            | AXP202            | AXP2101                                                     | Remarks          |\r\n| ---------- | ----------------- | ----------------- | ----------------------------------------------------------- | ---------------- |\r\n| DC1        | 0.7V-3.5V  /1.2A  | X                 | 1.5-3.4V                        /2A                         |                  |\r\n| DC2        | 0.7-2.275V /1.6A  | 0.7-2.275V /1.6A  | 0.5-1.2V,1.22-1.54V             /2A                         |                  |\r\n| DC3        | 0.7-3.5V   /0.7A  | 0.7-3.5V   /1.2A  | 0.5-1.2V,1.22-1.54V,1.6-3.4V    /2A                         |                  |\r\n| DC4        | x                 | x                 | 0.5-1.2V,1.22-1.84V            /1.5A                        |                  |\r\n| DC5        | x                 | x                 | 1.2V,1.4-3.7V                   /1A                         |                  |\r\n| LDO1(VRTC) | 3.3V       /30mA  | 3.3V       /30mA  | 1.8V                            /30mA                       |                  |\r\n| LDO2       | 1.8V-3.3V  /200mA | 1.8V-3.3V  /200mA | x                                                           |                  |\r\n| LDO3       | 1.8-3.3V   /200mA | 0.7-3.5V   /200mA | x                                                           |                  |\r\n| LDO4       | X                 | 1.8V-3.3V  /200mA | x                                                           |                  |\r\n| LDO5/IO0   | 1.8-3.3V   /50mA  | 1.8-3.3V   /50mA  | x                                                           |                  |\r\n| ALDO1      | x                 | x                 | 0.5-3.5V                        /300mA                      |                  |\r\n| ALDO2      | x                 | x                 | 0.5-3.5V                        /300mA                      |                  |\r\n| ALDO3      | x                 | x                 | 0.5-3.5V                        /300mA                      |                  |\r\n| ALDO4      | x                 | x                 | 0.5-3.5V                        /300mA                      |                  |\r\n| BLDO1      | x                 | x                 | 0.5-3.5V                        /300mA                      |                  |\r\n| BLDO2      | x                 | x                 | 0.5-3.5V                        /300mA                      |                  |\r\n| DLDO1      | x                 | x                 | (LDO Mode)0.5-3.3V/ 0.5-1.4V/300mA,(SW Mode)Switch Function | Dependent on DC1 |\r\n| DLDO2      | x                 | x                 | (LDO Mode)0.5-3.3V/ 0.5-1.4V/300mA,(SW Mode)Switch Function | Dependent on DC4 |\r\n| CPUSLDO    | x                 | x                 | 0.5-1.4V                        /30mA                       | Dependent on DC4 |\r\n\r\n\r\n# AXP2101 Notes:\r\n\r\n* Whether DLDO1/DLDO2/RTCLDO2/GPIO1 can be used depends on the chip. It is not available by default. RTCLDO1 has a default voltage, which is generally 1.8V by default. The voltage value cannot be changed or turned off through the register.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewisxhe%2Fxpowerslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewisxhe%2Fxpowerslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewisxhe%2Fxpowerslib/lists"}