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
@LanceBao0313 not sure if you managed to fix this or not. However, a fix that worked for me was changing the LedSetBrightness function which LedSet calls.
Replace the following code in LedSetBrightness found in led.cc:
if (enable) {
PwmEnable({pin_a_config});
} else {
PwmDisable({pin_a_config});
}
With:
PwmEnable({pin_a_config});
This keeps the LED on but now you can set a duty cycle of 0 (brightness of 0).
Prior, the enable can only be true for brightness values greater than kLedFullyOff (which is 0). Removing the conditional will call PwmEnable({pin_a_config}) no matter what brightness value is given.
For some reason PwmDisable fails to set stop the PWM timer for the Tpu LED. At the moment I'm not sure why, but the above code should fix your issue. Does feel a bit 'hacky' though.
Description
Tried to turn off the white TPU led when running the detect_faces example, but it doesn't work:
Output:
tpu led off: 1
But the led is still on
Click to expand!
Issue Type
Support
Operating System
Mac OS
Coral Device
Dev Board Micro
Other Devices
No response
Programming Language
No response
Relevant Log Output
No response
The text was updated successfully, but these errors were encountered: