update imagegenerator for lsb top

This commit is contained in:
interfisch 2023-11-25 12:41:16 +01:00
parent 421b4e1068
commit eb1bbd6f74
2 changed files with 98 additions and 95 deletions

View File

@ -66,83 +66,84 @@ void Image::addBuffer_text(String text,uint8_t xoffset, uint8_t yoffset)
void Image::setBuffer_Image1() //Bumblebee
{
backBuffer[0]=0b0000000000000111;
backBuffer[0]=0b1110000000000000;
backBuffer[1]=0b0000000000000000;
backBuffer[2]=0b0000000000000000;
backBuffer[3]=0b0000000000000010;
backBuffer[4]=0b0000000000000001;
backBuffer[5]=0b0000000001100000;
backBuffer[6]=0b0000000001110000;
backBuffer[7]=0b0000000000111000;
backBuffer[8]=0b0000000000001111;
backBuffer[9]=0b0000110000011111;
backBuffer[3]=0b0100000000000000;
backBuffer[4]=0b1000000000000000;
backBuffer[5]=0b0000011000000000;
backBuffer[6]=0b0000111000000000;
backBuffer[7]=0b0001110000000000;
backBuffer[8]=0b1111000000000000;
backBuffer[9]=0b1111100000110000;
backBuffer[10]=0b0000111001110000;
backBuffer[11]=0b0000011110000001;
backBuffer[12]=0b0000111000000010;
backBuffer[13]=0b0000110000000000;
backBuffer[11]=0b1000000111100000;
backBuffer[12]=0b0100000001110000;
backBuffer[13]=0b0000000000110000;
backBuffer[14]=0b0000000000000000;
backBuffer[15]=0b0000000000000111;
backBuffer[16]=0b0000000000001000;
backBuffer[15]=0b1110000000000000;
backBuffer[16]=0b0001000000000000;
backBuffer[17]=0b0000000000000000;
backBuffer[18]=0b0000000000000000;
backBuffer[19]=0b0000000000000011;
backBuffer[19]=0b1100000000000000;
backBuffer[20]=0b0000000000000000;
backBuffer[21]=0b0000000000000011;
backBuffer[21]=0b1100000000000000;
backBuffer[22]=0b0000000000000000;
backBuffer[23]=0b1100000000000000;
backBuffer[23]=0b0000000000000011;
backBuffer[24]=0b1110000000000111;
backBuffer[25]=0b1111000000000000;
backBuffer[26]=0b1111100000000000;
backBuffer[27]=0b1111100000000010;
backBuffer[28]=0b1111000000000001;
backBuffer[29]=0b1110000000000000;
backBuffer[30]=0b1110000000000001;
backBuffer[31]=0b1111000000000000;
backBuffer[32]=0b1111000000000000;
backBuffer[33]=0b1111100000000001;
backBuffer[34]=0b1111100000000000;
backBuffer[35]=0b1111100000000001;
backBuffer[36]=0b1111000000000000;
backBuffer[37]=0b1110000000000000;
backBuffer[38]=0b1110000000000000;
backBuffer[39]=0b1111000000000000;
backBuffer[40]=0b1111000000000011;
backBuffer[41]=0b1110000000000000;
backBuffer[42]=0b1100000000000000;
backBuffer[43]=0b1000000000000000;
backBuffer[44]=0b0000000000000010;
backBuffer[45]=0b0000000000000001;
backBuffer[25]=0b0000000000001111;
backBuffer[26]=0b0000000000011111;
backBuffer[27]=0b0100000000011111;
backBuffer[28]=0b1000000000001111;
backBuffer[29]=0b0000000000000111;
backBuffer[30]=0b1000000000000111;
backBuffer[31]=0b0000000000001111;
backBuffer[32]=0b0000000000001111;
backBuffer[33]=0b1000000000011111;
backBuffer[34]=0b0000000000011111;
backBuffer[35]=0b1000000000011111;
backBuffer[36]=0b0000000000001111;
backBuffer[37]=0b0000000000000111;
backBuffer[38]=0b0000000000000111;
backBuffer[39]=0b0000000000001111;
backBuffer[40]=0b1100000000001111;
backBuffer[41]=0b0000000000000111;
backBuffer[42]=0b0000000000000011;
backBuffer[43]=0b0000000000000001;
backBuffer[44]=0b0100000000000000;
backBuffer[45]=0b1000000000000000;
backBuffer[46]=0b0000000000000000;
backBuffer[47]=0b0000000000000000;
backBuffer[48]=0b0000000000000111;
backBuffer[48]=0b1110000000000000;
backBuffer[49]=0b0000000000000000;
backBuffer[50]=0b0000000000000000;
backBuffer[51]=0b0000000000000011;
backBuffer[51]=0b1100000000000000;
backBuffer[52]=0b0000000000000000;
backBuffer[53]=0b0000000000000000;
backBuffer[54]=0b0000000000000110;
backBuffer[55]=0b0000000000000001;
backBuffer[56]=0b0000110000000000;
backBuffer[57]=0b0001111000000000;
backBuffer[58]=0b0011110000000000;
backBuffer[59]=0b0011111000000011;
backBuffer[60]=0b0001110000000100;
backBuffer[54]=0b0110000000000000;
backBuffer[55]=0b1000000000000000;
backBuffer[56]=0b0000000000110000;
backBuffer[57]=0b0000000001111000;
backBuffer[58]=0b0000000000111100;
backBuffer[59]=0b1100000001111100;
backBuffer[60]=0b0010000000111000;
backBuffer[61]=0b0000000000000000;
backBuffer[62]=0b0000000000000000;
backBuffer[63]=0b0000000000000000;
backBuffer[64]=0b0000000111000000;
backBuffer[65]=0b0000000111000011;
backBuffer[66]=0b0000000111100000;
backBuffer[67]=0b0000000011110000;
backBuffer[68]=0b0000000001111111;
backBuffer[69]=0b0011000001110110;
backBuffer[70]=0b0011100111000100;
backBuffer[71]=0b0011111100001000;
backBuffer[72]=0b0011111000000000;
backBuffer[73]=0b0111100000000001;
backBuffer[64]=0b0000001110000000;
backBuffer[65]=0b1100001110000000;
backBuffer[66]=0b0000011110000000;
backBuffer[67]=0b0000111100000000;
backBuffer[68]=0b1111111000000000;
backBuffer[69]=0b0110111000001100;
backBuffer[70]=0b0010001110011100;
backBuffer[71]=0b0001000011111100;
backBuffer[72]=0b0000000001111100;
backBuffer[73]=0b1000000000011110;
backBuffer[74]=0b0000000000000000;
flag_updating=true; //make update run
}
@ -435,19 +436,19 @@ backBuffer[28]=0b1111111111111111;
backBuffer[29]=0b1111111111111111;
backBuffer[30]=0b1111111111111111;
backBuffer[31]=0b1000000000000001;
backBuffer[32]=0b1110011010010001;
backBuffer[33]=0b1000110011111101;
backBuffer[34]=0b1101001100110101;
backBuffer[35]=0b1011001000101101;
backBuffer[36]=0b1101101000000001;
backBuffer[37]=0b1001000110111001;
backBuffer[38]=0b1101101011011001;
backBuffer[39]=0b1011100011100101;
backBuffer[40]=0b1111001111110101;
backBuffer[41]=0b1000111010110101;
backBuffer[42]=0b1110110110011001;
backBuffer[43]=0b1011100101110001;
backBuffer[44]=0b1101010101010101;
backBuffer[32]=0b1000100101100111;
backBuffer[33]=0b1011111100110001;
backBuffer[34]=0b1010110011001011;
backBuffer[35]=0b1011010001001101;
backBuffer[36]=0b1000000001011011;
backBuffer[37]=0b1001110110001001;
backBuffer[38]=0b1001101101011011;
backBuffer[39]=0b1010011100011101;
backBuffer[40]=0b1010111111001111;
backBuffer[41]=0b1010110101110001;
backBuffer[42]=0b1001100110110111;
backBuffer[43]=0b1000111010011101;
backBuffer[44]=0b1010101010101011;
backBuffer[45]=0b1111111111111111;
backBuffer[46]=0b1111111111111111;
backBuffer[47]=0b1111111111111111;
@ -480,6 +481,7 @@ backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run
}
@ -499,57 +501,57 @@ backBuffer[8]=0b1111111111111111;
backBuffer[9]=0b1111111111111111;
backBuffer[10]=0b1111111111111111;
backBuffer[11]=0b1111111111111111;
backBuffer[12]=0b1110011111110011;
backBuffer[13]=0b1110111111110011;
backBuffer[12]=0b1100111111100111;
backBuffer[13]=0b1100111111110111;
backBuffer[14]=0b1100111111110011;
backBuffer[15]=0b1100000000000011;
backBuffer[16]=0b1100000000000011;
backBuffer[17]=0b1100000000000011;
backBuffer[18]=0b1111111111110011;
backBuffer[19]=0b1111111111110011;
backBuffer[18]=0b1100111111111111;
backBuffer[19]=0b1100111111111111;
backBuffer[20]=0b1111111111111111;
backBuffer[21]=0b1111111111111111;
backBuffer[22]=0b1111111111111111;
backBuffer[23]=0b1111111111110111;
backBuffer[23]=0b1110111111111111;
backBuffer[24]=0b1110111111110111;
backBuffer[25]=0b1110111111110011;
backBuffer[25]=0b1100111111110111;
backBuffer[26]=0b1100111001110011;
backBuffer[27]=0b1100111001110011;
backBuffer[28]=0b1100111001110011;
backBuffer[29]=0b1110000000000111;
backBuffer[30]=0b1110000100000111;
backBuffer[31]=0b1111001110001111;
backBuffer[30]=0b1110000010000111;
backBuffer[31]=0b1111000111001111;
backBuffer[32]=0b1111111111111111;
backBuffer[33]=0b1111111111111111;
backBuffer[34]=0b1111111111111111;
backBuffer[35]=0b1111111111111111;
backBuffer[36]=0b1111100011100011;
backBuffer[37]=0b1111100011100011;
backBuffer[38]=0b1111100011100011;
backBuffer[36]=0b1100011100011111;
backBuffer[37]=0b1100011100011111;
backBuffer[38]=0b1100011100011111;
backBuffer[39]=0b1111111111111111;
backBuffer[40]=0b1111111111111111;
backBuffer[41]=0b1111111111111111;
backBuffer[42]=0b1111111111110111;
backBuffer[42]=0b1110111111111111;
backBuffer[43]=0b1110111111110111;
backBuffer[44]=0b1110111111110011;
backBuffer[44]=0b1100111111110111;
backBuffer[45]=0b1100111001110011;
backBuffer[46]=0b1100111001110011;
backBuffer[47]=0b1100111001110011;
backBuffer[48]=0b1110000000000111;
backBuffer[49]=0b1110000100000111;
backBuffer[50]=0b1111001110001111;
backBuffer[49]=0b1110000010000111;
backBuffer[50]=0b1111000111001111;
backBuffer[51]=0b1111111111111111;
backBuffer[52]=0b1111111111111111;
backBuffer[53]=0b1111111111111111;
backBuffer[54]=0b1100111111111111;
backBuffer[55]=0b1100111111111111;
backBuffer[56]=0b1100111111111011;
backBuffer[57]=0b1100111111000011;
backBuffer[58]=0b1100111100000011;
backBuffer[59]=0b1100110000001111;
backBuffer[60]=0b1100000001111111;
backBuffer[61]=0b1100000111111111;
backBuffer[62]=0b1100011111111111;
backBuffer[54]=0b1111111111110011;
backBuffer[55]=0b1111111111110011;
backBuffer[56]=0b1101111111110011;
backBuffer[57]=0b1100001111110011;
backBuffer[58]=0b1100000011110011;
backBuffer[59]=0b1111000000110011;
backBuffer[60]=0b1111111000000011;
backBuffer[61]=0b1111111110000011;
backBuffer[62]=0b1111111111100011;
backBuffer[63]=0b1111111111111111;
backBuffer[64]=0b1111111111111111;
backBuffer[65]=0b1111111111111111;
@ -564,6 +566,7 @@ backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run
}

View File

@ -31,7 +31,7 @@ with open('result.txt', 'w') as f:
f.write("backBuffer[")
f.write(str(x))
f.write("]=0b")
for y in range(im.size[1]):
for y in reversed(range(im.size[1])):
c = pix[x,y] #get pixel
if (c[0]>127):
f.write("1")