Greetings,
I am new to arduino and coding and was wondering if someone could give some guidance on the code I inserted below. I am making a box which lights a single Led after a button press with patterns using PWM signal. The light portion is working as planned but when using a 1602A with an I2C breakout board, I get a flickering effect on the display with each condition (except when the LED is off.) I know that I should separate the code somehow to run the display once and wait for a button press but I dont know how. Any help would be greatly appreciated!