led animation using button

Hi im a beginner who is making led animation using Arduino uno . ws2812b and a button .

I need to do a simple project when you press a button for the first(, 2nd, 3rd…) time ,
the animation what I set (first,2nd,3rd) displays .
I have tried this many times but the button didn’t work :/…

I submit my code

LEDMatrixSerial_20.ino (60.5 KB)

problem solved :slight_smile: :slight_smile: