{"id":14963227,"url":"https://github.com/hwzlovedz/axp2101-pmic","last_synced_at":"2025-07-11T15:38:35.352Z","repository":{"id":253306387,"uuid":"843104654","full_name":"HwzLoveDz/AXP2101-PMIC","owner":"HwzLoveDz","description":"AXP2101 Power management IC（AXP2101电源管理芯片）","archived":false,"fork":false,"pushed_at":"2025-01-16T12:20:11.000Z","size":87,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T04:43:16.558Z","etag":null,"topics":["c","cpp","esp-idf","esp32","esp32-s3","pmic"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HwzLoveDz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-15T19:42:14.000Z","updated_at":"2025-01-16T12:20:12.000Z","dependencies_parsed_at":"2024-08-15T21:54:44.450Z","dependency_job_id":null,"html_url":"https://github.com/HwzLoveDz/AXP2101-PMIC","commit_stats":null,"previous_names":["hwzlovedz/axp2101-pmic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HwzLoveDz%2FAXP2101-PMIC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HwzLoveDz%2FAXP2101-PMIC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HwzLoveDz%2FAXP2101-PMIC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HwzLoveDz%2FAXP2101-PMIC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HwzLoveDz","download_url":"https://codeload.github.com/HwzLoveDz/AXP2101-PMIC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238053514,"owners_count":19408699,"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":["c","cpp","esp-idf","esp32","esp32-s3","pmic"],"created_at":"2024-09-24T13:31:12.159Z","updated_at":"2025-07-11T15:38:35.322Z","avatar_url":"https://github.com/HwzLoveDz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Note: 这个仓库只是作为 XPowersLib 移植到 ESP-IDF 的一种示例方式，其中增加了一些必要的 API,详情见大佬原仓库 XPowersLib\n\n# XPowersLib Example\n\n### Prerequisites\n\nPlease put XPowersLib and esp-idf in the same level directory, after configuring the esp-idf environment variable, enter `XPowersLib/examples/ESP_IDF_Example` and run the idf.py command directly\n\n\n### Configure the Project\n\nOpen the project configuration menu (`idf.py menuconfig`).\n\nIn the `XPowers Configuration` menu:\n\n* Select the PMU Type in the `PMU_Type` option.\n* In `PMU SCL GPIO Num` select the clock pin to connect to the PMU,the default is 22\n* In `PMU SDAGPIO Num` select the data pin connected to the PMU,the default is 21\n* Select the interrupt pin connected to the PMU in `PMU Interrupt Pin`, the default is 35\n\n## How to Use Example\n\nBefore project configuration and build, be sure to set the correct chip target using `idf.py set-target \u003cchip_name\u003e`.\n\n\n### Build and Flash\n\nRun `idf.py -p PORT flash monitor` to build, flash and monitor the project.\n\n(To exit the serial monitor, type ``Ctrl-]``.)\n\nSee the [Getting Started Guide](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html) for full steps to configure and use ESP-IDF to build projects.\n\n## Example Output\n\nThe output information is to configure the output voltage and enable status of the PMU\n\n```\nI (345) mian: I2C initialized successfully\nI (355) AXP2101: Init PMU SUCCESS!\nI (385) AXP2101: DCDC=======================================================================\nI (385) AXP2101: DC1  :ENABLE    Voltage:3300 mV\nI (385) AXP2101: DC2  :DISABLE   Voltage:900 mV\nI (395) AXP2101: DC3  :ENABLE    Voltage:3300 mV\nI (395) AXP2101: DC4  :DISABLE   Voltage:1100 mV\nI (405) AXP2101: DC5  :DISABLE   Voltage:1200 mV\nI (405) AXP2101: ALDO=======================================================================\nI (415) AXP2101: ALDO1:ENABLE    Voltage:1800 mV\nI (425) AXP2101: ALDO2:ENABLE    Voltage:2800 mV\nI (425) AXP2101: ALDO3:ENABLE    Voltage:3300 mV\nI (435) AXP2101: ALDO4:ENABLE    Voltage:3000 mV\nI (435) AXP2101: BLDO=======================================================================\nI (445) AXP2101: BLDO1:ENABLE    Voltage:3300 mV\n```\n\n## Build process example\n\nAssuming you don't have esp-idf yet\n\n```\nmkdir -p ~/esp\ncd ~/esp\ngit clone --recursive https://github.com/espressif/esp-idf.git\ngit clone https://github.com/lewisxhe/XPowersLib.git\ncd esp-idf\n./install.sh\n. ./export.sh\ncd ..\ncd XPowersLib/examples/ESP_IDF_Example\nidf.py menuconfig\nidf.py build\nidf.py -b 921600 flash\nidf.py monitor\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwzlovedz%2Faxp2101-pmic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwzlovedz%2Faxp2101-pmic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwzlovedz%2Faxp2101-pmic/lists"}