Hot answers tagged

3

The error message is quite explicit: argument of type "const byte (*)[8]" is incompatible with parameter of type "const byte *" If you want to pass SPACED_STRIPES to the method, it is going to be passed as const byte (*)[8], i.e. pointer to arrays of 8 byte. You can just set the parameter type accordingly: void CSMatrix::...


1

A 2D array would be passed as const byte frames[][8]. However you really don't need the complexity of a 2D array - you can do it with a 1D array. Your array would look like: const byte SPACED_STRIPES[] = { 0b11000110, 0b10001100, 0b00011000, 0b00110001, 0b01100011, 0b11000110, 0b10001100, 0b00011000, 0b01100011, ...


Only top voted, non community-wiki answers of a minimum length are eligible