Oh no no no, not delay.
Capture the time when the button is pressed, set a flag. Prior to shifting out the data see if the flag is cleared, and don't shift the data until time has passed and the flag is cleared.
Oh no no no, not delay.
Capture the time when the button is pressed, set a flag. Prior to shifting out the data see if the flag is cleared, and don't shift the data until time has passed and the flag is cleared.