You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the code on a custom board of mine (the design is based off the kicad design as well) and everything works for the most part except when I unplugged the device, the LED I have for when the (PD_UFP.get_voltage() == PD_V(20.0) && PD_UFP.get_current() >= PD_A(1.5) is true stays lit when I unplug the USBC cable. Here is the code block I have:
`void loop()
{
//analogWrite(LPWM, 255);
int voltage = analogRead(VBATT);
PD_UFP.run();
if (PD_UFP.is_power_ready())
{
I have the code on a custom board of mine (the design is based off the kicad design as well) and everything works for the most part except when I unplugged the device, the LED I have for when the (PD_UFP.get_voltage() == PD_V(20.0) && PD_UFP.get_current() >= PD_A(1.5) is true stays lit when I unplug the USBC cable. Here is the code block I have:
`void loop()
{
//analogWrite(LPWM, 255);
int voltage = analogRead(VBATT);
PD_UFP.run();
if (PD_UFP.is_power_ready())
{
}
}
`
The text was updated successfully, but these errors were encountered: