Debugging can be tricky when you can’t have it connected to the computer for trace output.
What I’ve done in these situations is use the LED , either just to show a ‘heartbeat’ ( to know what’s happening in render loop) , or use simple blink patterns to indicate events or such like.
Not ideal, but usually means I can find out more about what’s happening - useful once you’ve stared at the code for too long and need so inspiration!
Besides we all like blinky lights - no?
Edit: I’m usually using something like a nano, so use it’s onboard led, but you can use an external one
2 Likes