Skip to content

Commit

Permalink
Delete 0x82 register write duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyu-Zhao authored Jun 24, 2024
2 parents 0cc5414 + 2bd0c74 commit 6ac4add
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/AXP192.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ void AXP192::begin(void) {
// Bat charge voltage to 4.2, Current 100MA
Write1Byte(0x33, 0xc0);

// Enable Bat,ACIN,VBUS,APS adc
Write1Byte(0x82, 0xff);

// Enable Ext, LDO2, LDO3, DCDC1
Write1Byte(0x12, Read8bit(0x12) | 0x4D);

Expand Down Expand Up @@ -437,4 +434,4 @@ void AXP192::SetPeripherialsPower(uint8_t state) {
Write1Byte(0x10, Read8bit(0x10) | 0X04);
// uint8_t data;
// Set EXTEN to enable 5v boost
}
}

0 comments on commit 6ac4add

Please sign in to comment.