Yes but how put data in code, in normal basic I would do a thing like this:

R1$="000101110101010101010101" : whole data for row 1
R2$="110101010101111110000011" : whole data for row 2

and so on

then I would make a loop:

FOR A=0 TO 64-5
LINE1$=MID$(R1$,A,5) ' read 5 pixels from row variable and shift it left on next read
LINE2$=MID$(R2$,A,5) ' next lines and so on
GOSUB DISPLAY
NEXT A