Skip to content

Commit 062da3c

Browse files
Merge pull request #14 from adamgarbo/CAPRC
Enable Cap_RC Pin
2 parents 308940a + 1799316 commit 062da3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SparkFun_RV1805.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ boolean RV1805::begin(TwoWire &wirePort)
8181
if (sensorPartNumber != RV1805_PART_NUMBER_UPPER) //HW version for RV1805
8282
return(false); //Something went wrong. IC didn't respond.
8383

84+
writeRegister(RV1805_CONF_KEY, RV1805_CONF_WRT); //Enable write access to the CAPRC Register (26h)
85+
writeRegister(RV1805_CAP_RC, 0xA0); //Enable Cap_RC pin
86+
8487
enableTrickleCharge();
8588
enableLowPower();
8689

0 commit comments

Comments
 (0)