Added M5Tough Option
This commit is contained in:
@@ -18,6 +18,10 @@ void AXP192Component::setup()
|
||||
// disable LDO3 Vibration
|
||||
begin(false, true, false, false, false);
|
||||
}
|
||||
case AXP192_M5TOUGH:
|
||||
{
|
||||
begin(false, false, false, false, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,6 +67,13 @@ void AXP192Component::begin(bool disableLDO2, bool disableLDO3, bool disableRTC,
|
||||
// Set LDO2 & LDO3(TFT_LED & TFT) 3.0V
|
||||
Write1Byte(0x28, 0xcc);
|
||||
}
|
||||
case AXP192_M5TOUGH:
|
||||
{
|
||||
// Set DCDC3 (TFT_LED & TFT) 3.0V
|
||||
Write1Byte(0x27, 0xcc);
|
||||
// Set LDO2 & LDO3(TFT_LED & TFT) 3.0V
|
||||
Write1Byte(0x28, 0xcc);
|
||||
}
|
||||
}
|
||||
|
||||
// Set ADC sample rate to 200hz
|
||||
|
||||
Reference in New Issue
Block a user