Updated PiSugar Power Manager (Software) (markdown)

Jdaie 2025-01-21 16:20:28 +08:00
parent f4bb388558
commit 6c381666dd

@ -12,7 +12,7 @@ https://github.com/PiSugar/pisugar-power-manager-rs
* We had upgradged PiSugar2 to new model. To identify it, please check the charging indicate led count, 4-leds is for old model, 2-leds is for new model. The new model is able to accurately detected the charging status and control the charging recycle.
After attaching PiSugar2 to you pi, you can use the following commands to see whether it works properly:
After attaching PiSugar to you pi, you can use the following commands to see whether it works properly:
```
# turn on i2c interface
@ -20,14 +20,27 @@ sudo raspi-config
# Interfacing Options -> I2C -> Yes
# detect i2c bus and devices
# detect i2c bus and devices (PiSugar2)
i2cdetect -y 1
i2cdump -y 1 0x32
i2cdump -y 1 0x75
# detect i2c bus and devices (PiSugar3)
i2cdetect -y 1
i2cdump -y 1 0x57
i2cdump -y 1 0x68
```
If you cannot find any devices, or see lots of 'X.XX.X.X...' things, please try turning off PiSugar 2 and restart one minutes later.
## Support Models
| Model | Description | Photo |
| :- | :-: | :-: |
| PiSugar 3 | PiSugar 3/ PiSugar 3 Plus | - |
| PiSugar 2 2-led | PiSugar 2 | - |
| PiSugar 2 4-led | PiSugar 2 (early model) | - |
| PiSugar 2 Pro | PiSugar 2 Plus | - |
## Installation