dynamic led matrix control, modifying array's data

Why do you mess with bits? If you have received an int, just take the LSB and store it it your array...

un[i] = (byte) m.getArgAsInt32(i)