Added M5Tough Option

This commit is contained in:
paulchilton
2022-12-31 17:06:46 +00:00
committed by GitHub
parent 89bda5a501
commit fc022332b3

View File

@@ -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