m5stack / M5Core2

M5Core2 Arduino Library
MIT License
263 stars 115 forks source link

Setting voltage for DCDC2 is not working #82

Closed trunneml closed 2 years ago

trunneml commented 2 years ago

SetDCVoltage uses the wrong register. To set the voltage of DCDC2 register 23H needs to be used, not 25H (see https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/AXP192_datasheet_cn.pdf).

I created a PR #81 to fix it.