diff --git a/docs/en/api/power.md b/docs/en/api/power.md index 8e5c47b0..a0801bf2 100644 --- a/docs/en/api/power.md +++ b/docs/en/api/power.md @@ -188,20 +188,20 @@ void POWER::reset() { **Syntax:** -bool batteryMode(bool en) +bool boostMode(bool en) **Description:** -This function controls battery supply +This function controls power supply **Definition:** ```arduino -bool batteryMode(bool en){ +bool boostMode(bool en){ uint8_t data; Wire.beginTransmission(IP5306_ADDR); - Wire.write(IP5306_REG_READ1); + Wire.write(IP5306_REG_SYS_CTL0); Wire.endTransmission(); if(Wire.requestFrom(IP5306_ADDR, 1)) @@ -209,7 +209,7 @@ bool batteryMode(bool en){ data = Wire.read(); Wire.beginTransmission(IP5306_ADDR); - Wire.write(IP5306_REG_READ1); + Wire.write(IP5306_REG_SYS_CTL0); if (en) Wire.write(data | BOOST_ENABLE_BIT); else Wire.write(data &(~BOOST_ENABLE_BIT)); Wire.endTransmission(); diff --git a/docs/ja/api/power.md b/docs/ja/api/power.md index 5ae62b46..56334387 100644 --- a/docs/ja/api/power.md +++ b/docs/ja/api/power.md @@ -188,16 +188,16 @@ void POWER::reset() { **構文:** -bool batteryMode(bool en) +bool boostMode(bool en) **説明:** -バッテリーの供給状態を設定します +電源の供給状態を設定します **定義:** ```arduino -bool batteryMode(bool en){ +bool boostMode(bool en){ uint8_t data; Wire.beginTransmission(IP5306_ADDR); diff --git a/docs/zh_CN/api/power.md b/docs/zh_CN/api/power.md index c8ac5461..df774a8c 100644 --- a/docs/zh_CN/api/power.md +++ b/docs/zh_CN/api/power.md @@ -170,22 +170,22 @@ void POWER::reset() { ``` -## batteryMode() +## boostMode() **函数原型:** -bool batteryMode(bool en) +bool boostMode(bool en) **功能:设置电池供电状态** **函数实现:** ```arduino -bool batteryMode(bool en){ +bool boostMode(bool en){ uint8_t data; Wire.beginTransmission(IP5306_ADDR); - Wire.write(IP5306_REG_READ1); + Wire.write(IP5306_REG_SYS_CTL0); Wire.endTransmission(); if(Wire.requestFrom(IP5306_ADDR, 1)) @@ -193,7 +193,7 @@ bool batteryMode(bool en){ data = Wire.read(); Wire.beginTransmission(IP5306_ADDR); - Wire.write(IP5306_REG_READ1); + Wire.write(IP5306_REG_SYS_CTL0); if (en) Wire.write(data | BOOST_ENABLE_BIT); else Wire.write(data &(~BOOST_ENABLE_BIT)); Wire.endTransmission();