it depends on the requirements.
in this case, the PID requirements suggests (??) not using a delay and i showed button code not using delay
but the comments from the OP are confusing
it depends on the requirements.
in this case, the PID requirements suggests (??) not using a delay and i showed button code not using delay
but the comments from the OP are confusing