Need Help programming an 8x8 LED Matrix

Im programming an Uno to count up in Binary and to display that Binary onto an 8x8 LED matrix (I2C Backpack, adafruit), nearly all the code is sound, its only the display part. To display on this matrix it requires a uint8_t array, like so...

static const uint8_t PROGMEM
 Display1[]=
 {B10101010,
  B01010101,
  B10101010,
  B01010101,
  B10101010,
  B01010101,
  B10101010,
  B01010101 },

Now the difficulty I'm having is replacing the B10101010 with a variable holding a value, either with a byte or an array holding the binary separately. Does anyone know how I can do it?

Now the difficulty I'm having is replacing the B10101010 with a variable holding a value,

PROGMEM means READ-ONLY. Did you miss that part?

I did not know that.Without PROGMEM the Matrix doesnt display properly, know of any alternatives to PROGMEM?

Without PROGMEM the Matrix doesnt display properly, know of any alternatives to PROGMEM?

The library you are using is what expects the data to be in PROGMEM. Typically, though, what is in PROGMEM is the definition of characters and special symbols. Defining what (that is which characters, etc.) to display does not involve PROGMEM.

Perhaps its time for you to provide a high(er) level view of what you are trying to do.

You could develop your own library that doesn't use PROGMEM, but you'd probably need more than the 2K of SRAM that the UNO and other 328 based Arduinos have.