Need help with codes (continuity cable tester with lcd 16x2 i2C)

But you didn't change those things. Others on the forum did.

Maybe that is why the original code waited for a button press? Every 1000ms, you clear the screen and reprint the results, over and over and over...