2023-04-11 06:50 AM
2023-04-11 01:09 PM
That's probably unnecessarily frequent.
Perhaps hold in a variable and check if it changes.
Ideally if the board has access to a USART or serial data you could make something interactive rather than stopping in the debugger.
Or if the board has a potentiometer you could read an angle from that using an ADC channel.