I'm doing a program for Arduino written in C ++ to turn on and off leds when a button is pressed. I want to save the values of the LEDs that are on and the amount of brightness in an EEPROM memory.
I thought of using an array, so the first element would be the reference for the specific object and the second the amount of brightness. I'm still new to programming in general, I researched, and I ended up thinking I was trying to use a two-dimensional array that did not work perfectly.