Hello every boby.
for (byte c=0; c<8; ++c) {
for (byte y=0; y<8; ++y) {
byte data = (byte) pgm_read_byte (&myfont[disp[line][c]][y]); // fetch data from program memory
for (byte x=0; x<8; ++x) {
if (data & (1<<x)) {
// on is off
int color = 2;
if (line > 1)
color = 1;
set_pixel((7-x) + (line * 8),y + (c*8),color);
} else {
//set_pixel(x,y,1);
}
}
}
}
}
This is available code ,which i downloaded ,but i don't know how to use detail this syntax :
data = (byte) pgm_read_byte (&myfont[disp[line][c]][y])
This code is so complex ,can you give me some codes simpler ,because i search on Google serveral days ,but difficult to found =( =(
Thanks