Wire a button between an input pin and ground. Connect each LED—with a resistor—in series between an output pin and ground. Use code to cycle through different LED patterns each time the button is pressed
Code
/*Paste your code here*/
https://wokwi.com/projects/443181531674669057