try other images and flip methods

This commit is contained in:
interfisch 2023-11-22 19:32:33 +01:00
parent efd88fcbb4
commit 4b538053f9
4 changed files with 669 additions and 307 deletions

Binary file not shown.

View File

@ -63,6 +63,11 @@ public:
void setBuffer_Image2(); void setBuffer_Image2();
void setBuffer_Image3(); void setBuffer_Image3();
void setBuffer_Image4(); void setBuffer_Image4();
void setBuffer_Image5();
void setBuffer_Image6();
void setBuffer_Image7();
void setBuffer_Image8();
void loop_testDots(); void loop_testDots();
void loop_drawClearTest(); void loop_drawClearTest();

View File

@ -49,162 +49,164 @@ void Image::setBuffer_solid(bool set)
void Image::setBuffer_Image1() void Image::setBuffer_Image1()
{ {
backBuffer[0]=0b0101010101010101; backBuffer[0]=0b0000000000000111;
backBuffer[1]=0b1010101010101010; backBuffer[1]=0b0000000000000000;
backBuffer[2]=0b0101010101010101; backBuffer[2]=0b0000000000000000;
backBuffer[3]=0b1010101010101010; backBuffer[3]=0b0000000000000010;
backBuffer[4]=0b0101010101010101; backBuffer[4]=0b0000000000000001;
backBuffer[5]=0b1010101010101010; backBuffer[5]=0b0000000001100000;
backBuffer[6]=0b0101010101010101; backBuffer[6]=0b0000000001110000;
backBuffer[7]=0b1010101010101010; backBuffer[7]=0b0000000000111000;
backBuffer[8]=0b0101010101010101; backBuffer[8]=0b0000000000001111;
backBuffer[9]=0b1010101010101010; backBuffer[9]=0b0000110000011111;
backBuffer[10]=0b0101010101010101; backBuffer[10]=0b0000111001110000;
backBuffer[11]=0b1010101010101010; backBuffer[11]=0b0000011110000001;
backBuffer[12]=0b0101010101010101; backBuffer[12]=0b0000111000000010;
backBuffer[13]=0b1010101010101010; backBuffer[13]=0b0000110000000000;
backBuffer[14]=0b0101010101010101; backBuffer[14]=0b0000000000000000;
backBuffer[15]=0b1010101010101010; backBuffer[15]=0b0000000000000111;
backBuffer[16]=0b0101010101010101; backBuffer[16]=0b0000000000001000;
backBuffer[17]=0b1010101010101010; backBuffer[17]=0b0000000000000000;
backBuffer[18]=0b0101010101010101; backBuffer[18]=0b0000000000000000;
backBuffer[19]=0b1010101010101010; backBuffer[19]=0b0000000000000011;
backBuffer[20]=0b0101010101010101; backBuffer[20]=0b0000000000000000;
backBuffer[21]=0b1010101010101010; backBuffer[21]=0b0000000000000011;
backBuffer[22]=0b0101010101010101; backBuffer[22]=0b0000000000000000;
backBuffer[23]=0b1010101010101010; backBuffer[23]=0b1100000000000000;
backBuffer[24]=0b0101010101010101; backBuffer[24]=0b1110000000000111;
backBuffer[25]=0b1010101010101010; backBuffer[25]=0b1111000000000000;
backBuffer[26]=0b0101010101010101; backBuffer[26]=0b1111100000000000;
backBuffer[27]=0b1010101010101010; backBuffer[27]=0b1111100000000010;
backBuffer[28]=0b0101010101010101; backBuffer[28]=0b1111000000000001;
backBuffer[29]=0b1010101010101010; backBuffer[29]=0b1110000000000000;
backBuffer[30]=0b0101010101010101; backBuffer[30]=0b1110000000000001;
backBuffer[31]=0b1010101010101010; backBuffer[31]=0b1111000000000000;
backBuffer[32]=0b0101010101010101; backBuffer[32]=0b1111000000000000;
backBuffer[33]=0b1010101010101010; backBuffer[33]=0b1111100000000001;
backBuffer[34]=0b0101010101010101; backBuffer[34]=0b1111100000000000;
backBuffer[35]=0b1010101010101010; backBuffer[35]=0b1111100000000001;
backBuffer[36]=0b0101010101010101; backBuffer[36]=0b1111000000000000;
backBuffer[37]=0b1010101010101010; backBuffer[37]=0b1110000000000000;
backBuffer[38]=0b0101010101010101; backBuffer[38]=0b1110000000000000;
backBuffer[39]=0b1010101010101010; backBuffer[39]=0b1111000000000000;
backBuffer[40]=0b0101010101010101; backBuffer[40]=0b1111000000000011;
backBuffer[41]=0b1010101010101010; backBuffer[41]=0b1110000000000000;
backBuffer[42]=0b0101010101010101; backBuffer[42]=0b1100000000000000;
backBuffer[43]=0b1010101010101010; backBuffer[43]=0b1000000000000000;
backBuffer[44]=0b0101010101010101; backBuffer[44]=0b0000000000000010;
backBuffer[45]=0b1010101010101010; backBuffer[45]=0b0000000000000001;
backBuffer[46]=0b0101010101010101; backBuffer[46]=0b0000000000000000;
backBuffer[47]=0b1010101010101010; backBuffer[47]=0b0000000000000000;
backBuffer[48]=0b0101010101010101; backBuffer[48]=0b0000000000000111;
backBuffer[49]=0b1010101010101010; backBuffer[49]=0b0000000000000000;
backBuffer[50]=0b0101010101010101; backBuffer[50]=0b0000000000000000;
backBuffer[51]=0b1010101010101010; backBuffer[51]=0b0000000000000011;
backBuffer[52]=0b0101010101010101; backBuffer[52]=0b0000000000000000;
backBuffer[53]=0b1010101010101010; backBuffer[53]=0b0000000000000000;
backBuffer[54]=0b0101010101010101; backBuffer[54]=0b0000000000000110;
backBuffer[55]=0b1010101010101010; backBuffer[55]=0b0000000000000001;
backBuffer[56]=0b0101010101010101; backBuffer[56]=0b0000110000000000;
backBuffer[57]=0b1010101010101010; backBuffer[57]=0b0001111000000000;
backBuffer[58]=0b0101010101010101; backBuffer[58]=0b0011110000000000;
backBuffer[59]=0b1010101010101010; backBuffer[59]=0b0011111000000011;
backBuffer[60]=0b0101010101010101; backBuffer[60]=0b0001110000000100;
backBuffer[61]=0b1010101010101010; backBuffer[61]=0b0000000000000000;
backBuffer[62]=0b0101010101010101; backBuffer[62]=0b0000000000000000;
backBuffer[63]=0b1010101010101010; backBuffer[63]=0b0000000000000000;
backBuffer[64]=0b0101010101010101; backBuffer[64]=0b0000000111000000;
backBuffer[65]=0b1010101010101010; backBuffer[65]=0b0000000111000011;
backBuffer[66]=0b0101010101010101; backBuffer[66]=0b0000000111100000;
backBuffer[67]=0b1010101010101010; backBuffer[67]=0b0000000011110000;
backBuffer[68]=0b0101010101010101; backBuffer[68]=0b0000000001111111;
backBuffer[69]=0b1010101010101010; backBuffer[69]=0b0011000001110110;
backBuffer[70]=0b0101010101010101; backBuffer[70]=0b0011100111000100;
backBuffer[71]=0b1010101010101010; backBuffer[71]=0b0011111100001000;
backBuffer[72]=0b0101010101010101; backBuffer[72]=0b0011111000000000;
backBuffer[73]=0b1010101010101010; backBuffer[73]=0b0111100000000001;
backBuffer[74]=0b0101010101010101; backBuffer[74]=0b0000000000000000;
flag_updating=true; //make update run flag_updating=true; //make update run
} }
void Image::setBuffer_Image2() void Image::setBuffer_Image2()
{ {
backBuffer[0]=0b1010101010101010; backBuffer[0]=0b0000000000000000;
backBuffer[1]=0b0101010101010101; backBuffer[1]=0b0000000000000000;
backBuffer[2]=0b1010101010101010; backBuffer[2]=0b0000000000000000;
backBuffer[3]=0b0101010101010101; backBuffer[3]=0b0000000000000000;
backBuffer[4]=0b1010101010101010; backBuffer[4]=0b0000000000000000;
backBuffer[5]=0b0101010101010101; backBuffer[5]=0b0000000000000000;
backBuffer[6]=0b1010101010101010; backBuffer[6]=0b0000000000000000;
backBuffer[7]=0b0101010101010101; backBuffer[7]=0b0000011110000000;
backBuffer[8]=0b1010101010101010; backBuffer[8]=0b0011111111000000;
backBuffer[9]=0b0101010101010101; backBuffer[9]=0b0111111111100000;
backBuffer[10]=0b1010101010101010; backBuffer[10]=0b1111110111110000;
backBuffer[11]=0b0101010101010101; backBuffer[11]=0b1110000000111000;
backBuffer[12]=0b1010101010101010; backBuffer[12]=0b1110000000111100;
backBuffer[13]=0b0101010101010101; backBuffer[13]=0b1110000000111100;
backBuffer[14]=0b1010101010101010; backBuffer[14]=0b1110000001111000;
backBuffer[15]=0b0101010101010101; backBuffer[15]=0b1111000000110000;
backBuffer[16]=0b1010101010101010; backBuffer[16]=0b0110000000000000;
backBuffer[17]=0b0101010101010101; backBuffer[17]=0b0000000000000000;
backBuffer[18]=0b1010101010101010; backBuffer[18]=0b0000000000000000;
backBuffer[19]=0b0101010101010101; backBuffer[19]=0b0000000000000000;
backBuffer[20]=0b1010101010101010; backBuffer[20]=0b0000000000000000;
backBuffer[21]=0b0101010101010101; backBuffer[21]=0b0110000000000000;
backBuffer[22]=0b1010101010101010; backBuffer[22]=0b1111000000000000;
backBuffer[23]=0b0101010101010101; backBuffer[23]=0b1110000000000000;
backBuffer[24]=0b1010101010101010; backBuffer[24]=0b1110000000001100;
backBuffer[25]=0b0101010101010101; backBuffer[25]=0b1110000011111110;
backBuffer[26]=0b1010101010101010; backBuffer[26]=0b1111111111111110;
backBuffer[27]=0b0101010101010101; backBuffer[27]=0b1111111111111100;
backBuffer[28]=0b1010101010101010; backBuffer[28]=0b1111111111000000;
backBuffer[29]=0b0101010101010101; backBuffer[29]=0b1110000000000000;
backBuffer[30]=0b1010101010101010; backBuffer[30]=0b1110000000000000;
backBuffer[31]=0b0101010101010101; backBuffer[31]=0b1110000000000000;
backBuffer[32]=0b1010101010101010; backBuffer[32]=0b1111000000000000;
backBuffer[33]=0b0101010101010101; backBuffer[33]=0b0110000000000000;
backBuffer[34]=0b1010101010101010; backBuffer[34]=0b0000000000000000;
backBuffer[35]=0b0101010101010101; backBuffer[35]=0b0000000000000000;
backBuffer[36]=0b1010101010101010; backBuffer[36]=0b0000000000000000;
backBuffer[37]=0b0101010101010101; backBuffer[37]=0b0000000000000000;
backBuffer[38]=0b1010101010101010; backBuffer[38]=0b0000000000000000;
backBuffer[39]=0b0101010101010101; backBuffer[39]=0b0110000000000000;
backBuffer[40]=0b1010101010101010; backBuffer[40]=0b1111000000011000;
backBuffer[41]=0b0101010101010101; backBuffer[41]=0b1111111111111100;
backBuffer[42]=0b1010101010101010; backBuffer[42]=0b1111111111111110;
backBuffer[43]=0b0101010101010101; backBuffer[43]=0b1111111111111110;
backBuffer[44]=0b1010101010101010; backBuffer[44]=0b1111000011111111;
backBuffer[45]=0b0101010101010101; backBuffer[45]=0b1111000000000111;
backBuffer[46]=0b1010101010101010; backBuffer[46]=0b1111000000000111;
backBuffer[47]=0b0101010101010101; backBuffer[47]=0b0111000000000111;
backBuffer[48]=0b1010101010101010; backBuffer[48]=0b0111000000000011;
backBuffer[49]=0b0101010101010101; backBuffer[49]=0b0111100000000111;
backBuffer[50]=0b1010101010101010; backBuffer[50]=0b0011100000011111;
backBuffer[51]=0b0101010101010101; backBuffer[51]=0b0001111111111110;
backBuffer[52]=0b1010101010101010; backBuffer[52]=0b0000111111111100;
backBuffer[53]=0b0101010101010101; backBuffer[53]=0b0000011111110000;
backBuffer[54]=0b1010101010101010; backBuffer[54]=0b0000001110000000;
backBuffer[55]=0b0101010101010101; backBuffer[55]=0b0000000000000000;
backBuffer[56]=0b1010101010101010; backBuffer[56]=0b0000000000000000;
backBuffer[57]=0b0101010101010101; backBuffer[57]=0b0000000000000000;
backBuffer[58]=0b1010101010101010; backBuffer[58]=0b0000000000000000;
backBuffer[59]=0b0101010101010101; backBuffer[59]=0b0000000000000000;
backBuffer[60]=0b1010101010101010; backBuffer[60]=0b0000000000000000;
backBuffer[61]=0b0101010101010101; backBuffer[61]=0b0000001111000000;
backBuffer[62]=0b1010101010101010; backBuffer[62]=0b0000111111100000;
backBuffer[63]=0b0101010101010101; backBuffer[63]=0b0001111111110000;
backBuffer[64]=0b1010101010101010; backBuffer[64]=0b0001111111111000;
backBuffer[65]=0b0101010101010101; backBuffer[65]=0b0011110000111100;
backBuffer[66]=0b1010101010101010; backBuffer[66]=0b0011100000011100;
backBuffer[67]=0b0101010101010101; backBuffer[67]=0b0111110000011100;
backBuffer[68]=0b1010101010101010; backBuffer[68]=0b0111100000011110;
backBuffer[69]=0b0101010101010101; backBuffer[69]=0b0011111001111100;
backBuffer[70]=0b1010101010101010; backBuffer[70]=0b0001111111111000;
backBuffer[71]=0b0101010101010101; backBuffer[71]=0b0000111111110000;
backBuffer[72]=0b1010101010101010; backBuffer[72]=0b0000011111100000;
backBuffer[73]=0b0101010101010101; backBuffer[73]=0b0000000000000000;
backBuffer[74]=0b1010101010101010; backBuffer[74]=0b0000000000000000;
flag_updating=true; //make update run flag_updating=true; //make update run
} }
@ -212,81 +214,83 @@ flag_updating=true; //make update run
void Image::setBuffer_Image3() void Image::setBuffer_Image3()
{ {
backBuffer[0]=0b1010101010101010; backBuffer[0]=0b1111111111111111;
backBuffer[1]=0b1010101010101010; backBuffer[1]=0b1111111111111111;
backBuffer[2]=0b1010101010101010; backBuffer[2]=0b1111111111111111;
backBuffer[3]=0b1010101010101010; backBuffer[3]=0b1111111111111111;
backBuffer[4]=0b1010101010101010; backBuffer[4]=0b1111111111111111;
backBuffer[5]=0b1010101010101010; backBuffer[5]=0b1111111111111111;
backBuffer[6]=0b1010101010101010; backBuffer[6]=0b1111111111111111;
backBuffer[7]=0b1010101010101010; backBuffer[7]=0b1111111111111111;
backBuffer[8]=0b1010101010101010; backBuffer[8]=0b1111111111111111;
backBuffer[9]=0b1010101010101010; backBuffer[9]=0b1111111111111111;
backBuffer[10]=0b1010101010101010; backBuffer[10]=0b1111111111111111;
backBuffer[11]=0b1010101010101010; backBuffer[11]=0b1111111111111111;
backBuffer[12]=0b1010101010101010; backBuffer[12]=0b1111111111111111;
backBuffer[13]=0b1010101010101010; backBuffer[13]=0b1111111111111111;
backBuffer[14]=0b1010101010101010; backBuffer[14]=0b1101111111000111;
backBuffer[15]=0b1010101010101010; backBuffer[15]=0b1101111110000111;
backBuffer[16]=0b1010101010101010; backBuffer[16]=0b1001111100000111;
backBuffer[17]=0b1010101010101010; backBuffer[17]=0b1001111000100111;
backBuffer[18]=0b1010101010101010; backBuffer[18]=0b1000110001100111;
backBuffer[19]=0b1010101010101010; backBuffer[19]=0b1100000011100111;
backBuffer[20]=0b1010101010101010; backBuffer[20]=0b1100000111100111;
backBuffer[21]=0b1010101010101010; backBuffer[21]=0b1111111111111111;
backBuffer[22]=0b1010101010101010; backBuffer[22]=0b1111111111111111;
backBuffer[23]=0b1010101010101010; backBuffer[23]=0b1111111111111111;
backBuffer[24]=0b1010101010101010; backBuffer[24]=0b1111111111101111;
backBuffer[25]=0b1010101010101010; backBuffer[25]=0b1101111111101111;
backBuffer[26]=0b1010101010101010; backBuffer[26]=0b1101100111100111;
backBuffer[27]=0b1010101010101010; backBuffer[27]=0b1001100111100111;
backBuffer[28]=0b1010101010101010; backBuffer[28]=0b1001100111100111;
backBuffer[29]=0b1010101010101010; backBuffer[29]=0b1001100011000111;
backBuffer[30]=0b1010101010101010; backBuffer[30]=0b1100000000001111;
backBuffer[31]=0b1010101010101010; backBuffer[31]=0b1100011000001111;
backBuffer[32]=0b1010101010101010; backBuffer[32]=0b1111111100111111;
backBuffer[33]=0b1010101010101010; backBuffer[33]=0b1111111111111111;
backBuffer[34]=0b1010101010101010; backBuffer[34]=0b1111111111111111;
backBuffer[35]=0b1010101010101010; backBuffer[35]=0b1111111111111111;
backBuffer[36]=0b1010101010101010; backBuffer[36]=0b1111000111000111;
backBuffer[37]=0b1010101010101010; backBuffer[37]=0b1111000111000111;
backBuffer[38]=0b1010101010101010; backBuffer[38]=0b1111111111111111;
backBuffer[39]=0b1010101010101010; backBuffer[39]=0b1111111111111111;
backBuffer[40]=0b1010101010101010; backBuffer[40]=0b1111111111111111;
backBuffer[41]=0b1010101010101010; backBuffer[41]=0b1111111111111111;
backBuffer[42]=0b1010101010101010; backBuffer[42]=0b1101111111000111;
backBuffer[43]=0b1010101010101010; backBuffer[43]=0b1101111110000111;
backBuffer[44]=0b1010101010101010; backBuffer[44]=0b1001111100000111;
backBuffer[45]=0b1010101010101010; backBuffer[45]=0b1001111000100111;
backBuffer[46]=0b1010101010101010; backBuffer[46]=0b1000110001100111;
backBuffer[47]=0b1010101010101010; backBuffer[47]=0b1100000011100111;
backBuffer[48]=0b1010101010101010; backBuffer[48]=0b1100000111100111;
backBuffer[49]=0b1010101010101010; backBuffer[49]=0b1111111111111111;
backBuffer[50]=0b1010101010101010; backBuffer[50]=0b1111111111111111;
backBuffer[51]=0b1010101010101010; backBuffer[51]=0b1111111111111111;
backBuffer[52]=0b1010101010101010; backBuffer[52]=0b1111111100011111;
backBuffer[53]=0b1010101010101010; backBuffer[53]=0b1111110000011111;
backBuffer[54]=0b1010101010101010; backBuffer[54]=0b1111000110011111;
backBuffer[55]=0b1010101010101010; backBuffer[55]=0b1110011110011111;
backBuffer[56]=0b1010101010101010; backBuffer[56]=0b1000111110011111;
backBuffer[57]=0b1010101010101010; backBuffer[57]=0b1000000000000111;
backBuffer[58]=0b1010101010101010; backBuffer[58]=0b1000000000000111;
backBuffer[59]=0b1010101010101010; backBuffer[59]=0b1111111110011111;
backBuffer[60]=0b1010101010101010; backBuffer[60]=0b1111111110011111;
backBuffer[61]=0b1010101010101010; backBuffer[61]=0b1111111111111111;
backBuffer[62]=0b1010101010101010; backBuffer[62]=0b1111111111111111;
backBuffer[63]=0b1010101010101010; backBuffer[63]=0b1111111111111111;
backBuffer[64]=0b1010101010101010; backBuffer[64]=0b1111111111111111;
backBuffer[65]=0b1010101010101010; backBuffer[65]=0b1111111111111111;
backBuffer[66]=0b1010101010101010; backBuffer[66]=0b1111111111111111;
backBuffer[67]=0b1010101010101010; backBuffer[67]=0b1111111111111111;
backBuffer[68]=0b1010101010101010; backBuffer[68]=0b1111111111111111;
backBuffer[69]=0b1010101010101010; backBuffer[69]=0b1111111111111111;
backBuffer[70]=0b1010101010101010; backBuffer[70]=0b1111111111111111;
backBuffer[71]=0b1010101010101010; backBuffer[71]=0b1111111111111111;
backBuffer[72]=0b1010101010101010; backBuffer[72]=0b1111111111111111;
backBuffer[73]=0b1010101010101010; backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1010101010101010; backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run flag_updating=true; //make update run
@ -296,81 +300,418 @@ backBuffer[74]=0b1010101010101010;
void Image::setBuffer_Image4() void Image::setBuffer_Image4()
{ {
backBuffer[0]=0b0101010101010101;
backBuffer[1]=0b0101010101010101; backBuffer[0]=0b0000000000000000;
backBuffer[2]=0b0101010101010101; backBuffer[1]=0b0000000000000000;
backBuffer[3]=0b0101010101010101; backBuffer[2]=0b0000000000000000;
backBuffer[4]=0b0101010101010101; backBuffer[3]=0b0000000000000000;
backBuffer[5]=0b0101010101010101; backBuffer[4]=0b0000000000000000;
backBuffer[6]=0b0101010101010101; backBuffer[5]=0b0000000000000000;
backBuffer[7]=0b0101010101010101; backBuffer[6]=0b0000000011000000;
backBuffer[8]=0b0101010101010101; backBuffer[7]=0b0000011111100000;
backBuffer[9]=0b0101010101010101; backBuffer[8]=0b0011111111110000;
backBuffer[10]=0b0101010101010101; backBuffer[9]=0b0111111111110000;
backBuffer[11]=0b0101010101010101; backBuffer[10]=0b0111110011110000;
backBuffer[12]=0b0101010101010101; backBuffer[11]=0b0011000011110000;
backBuffer[13]=0b0101010101010101; backBuffer[12]=0b0000000011110000;
backBuffer[14]=0b0101010101010101; backBuffer[13]=0b0000000011110000;
backBuffer[15]=0b0101010101010101; backBuffer[14]=0b0000000001110000;
backBuffer[16]=0b0101010101010101; backBuffer[15]=0b0000000000100000;
backBuffer[17]=0b0101010101010101; backBuffer[16]=0b0000000000000000;
backBuffer[18]=0b0101010101010101; backBuffer[17]=0b0000000000000000;
backBuffer[19]=0b0101010101010101; backBuffer[18]=0b0000000000000000;
backBuffer[20]=0b0101010101010101; backBuffer[19]=0b0000000000011000;
backBuffer[21]=0b0101010101010101; backBuffer[20]=0b0000000001111100;
backBuffer[22]=0b0101010101010101; backBuffer[21]=0b0001000011111000;
backBuffer[23]=0b0101010101010101; backBuffer[22]=0b0011100111110000;
backBuffer[24]=0b0101010101010101; backBuffer[23]=0b0011100011000000;
backBuffer[25]=0b0101010101010101; backBuffer[24]=0b0001000000000000;
backBuffer[26]=0b0101010101010101; backBuffer[25]=0b0000000000000000;
backBuffer[27]=0b0101010101010101; backBuffer[26]=0b0000000000000000;
backBuffer[28]=0b0101010101010101; backBuffer[27]=0b0000000000000000;
backBuffer[29]=0b0101010101010101; backBuffer[28]=0b0000000000011100;
backBuffer[30]=0b0101010101010101; backBuffer[29]=0b0000000111111110;
backBuffer[31]=0b0101010101010101; backBuffer[30]=0b0000001111111110;
backBuffer[32]=0b0101010101010101; backBuffer[31]=0b0000000111111100;
backBuffer[33]=0b0101010101010101; backBuffer[32]=0b0000000111100000;
backBuffer[34]=0b0101010101010101; backBuffer[33]=0b0000000111000000;
backBuffer[35]=0b0101010101010101; backBuffer[34]=0b0000000111000000;
backBuffer[36]=0b0101010101010101; backBuffer[35]=0b0000000111000000;
backBuffer[37]=0b0101010101010101; backBuffer[36]=0b0000000111111000;
backBuffer[38]=0b0101010101010101; backBuffer[37]=0b0000000011111100;
backBuffer[39]=0b0101010101010101; backBuffer[38]=0b0000000001111110;
backBuffer[40]=0b0101010101010101; backBuffer[39]=0b0000000000011100;
backBuffer[41]=0b0101010101010101; backBuffer[40]=0b0000000000000000;
backBuffer[42]=0b0101010101010101; backBuffer[41]=0b0000000000000000;
backBuffer[43]=0b0101010101010101; backBuffer[42]=0b0000000000000000;
backBuffer[44]=0b0101010101010101; backBuffer[43]=0b0000001111110000;
backBuffer[45]=0b0101010101010101; backBuffer[44]=0b0000011111111000;
backBuffer[46]=0b0101010101010101; backBuffer[45]=0b0000011111111100;
backBuffer[47]=0b0101010101010101; backBuffer[46]=0b0000001100111100;
backBuffer[48]=0b0101010101010101; backBuffer[47]=0b0000000000111000;
backBuffer[49]=0b0101010101010101; backBuffer[48]=0b0000000000111000;
backBuffer[50]=0b0101010101010101; backBuffer[49]=0b0000000000111000;
backBuffer[51]=0b0101010101010101; backBuffer[50]=0b0000000001110000;
backBuffer[52]=0b0101010101010101; backBuffer[51]=0b0000000011110000;
backBuffer[53]=0b0101010101010101; backBuffer[52]=0b0000001111100000;
backBuffer[54]=0b0101010101010101; backBuffer[53]=0b0000011111000000;
backBuffer[55]=0b0101010101010101; backBuffer[54]=0b0000001100000000;
backBuffer[56]=0b0101010101010101; backBuffer[55]=0b0000000000001000;
backBuffer[57]=0b0101010101010101; backBuffer[56]=0b0000011000011100;
backBuffer[58]=0b0101010101010101; backBuffer[57]=0b0000111100011100;
backBuffer[59]=0b0101010101010101; backBuffer[58]=0b0000111100011100;
backBuffer[60]=0b0101010101010101; backBuffer[59]=0b0000011110111000;
backBuffer[61]=0b0101010101010101; backBuffer[60]=0b0000001111111000;
backBuffer[62]=0b0101010101010101; backBuffer[61]=0b0000000011110000;
backBuffer[63]=0b0101010101010101; backBuffer[62]=0b0000000011110000;
backBuffer[64]=0b0101010101010101; backBuffer[63]=0b0000000111110000;
backBuffer[65]=0b0101010101010101; backBuffer[64]=0b0000001111111000;
backBuffer[66]=0b0101010101010101; backBuffer[65]=0b0000011110111100;
backBuffer[67]=0b0101010101010101; backBuffer[66]=0b0000011100011110;
backBuffer[68]=0b0101010101010101; backBuffer[67]=0b0000001000001110;
backBuffer[69]=0b0101010101010101; backBuffer[68]=0b0000000000000100;
backBuffer[70]=0b0101010101010101; backBuffer[69]=0b0000000000000000;
backBuffer[71]=0b0101010101010101; backBuffer[70]=0b0000000000000000;
backBuffer[72]=0b0101010101010101; backBuffer[71]=0b0000000000000000;
backBuffer[73]=0b0101010101010101; backBuffer[72]=0b0000000000000000;
backBuffer[74]=0b0101010101010101; backBuffer[73]=0b0000000000000000;
backBuffer[74]=0b0000000000000000;
flag_updating=true; //make update run
}
void Image::setBuffer_Image5()
{
backBuffer[0]=0b1111111111111111;
backBuffer[1]=0b1111111111111111;
backBuffer[2]=0b1111111111111111;
backBuffer[3]=0b1111111111111111;
backBuffer[4]=0b1111111111111111;
backBuffer[5]=0b1111111111111111;
backBuffer[6]=0b1111111111111111;
backBuffer[7]=0b1111111111111111;
backBuffer[8]=0b1111111111111111;
backBuffer[9]=0b1111111111111111;
backBuffer[10]=0b1111111111111111;
backBuffer[11]=0b1111111111111111;
backBuffer[12]=0b1111111111111111;
backBuffer[13]=0b1111111111111111;
backBuffer[14]=0b1111111111111111;
backBuffer[15]=0b1111111111111111;
backBuffer[16]=0b1111111111111111;
backBuffer[17]=0b1111111111111111;
backBuffer[18]=0b1111111111111111;
backBuffer[19]=0b1111111111111111;
backBuffer[20]=0b1111111111111111;
backBuffer[21]=0b1111111111111111;
backBuffer[22]=0b1111111111111111;
backBuffer[23]=0b1111111111111111;
backBuffer[24]=0b1111111111111111;
backBuffer[25]=0b1111111111111111;
backBuffer[26]=0b1111111111111111;
backBuffer[27]=0b1111111111111111;
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[45]=0b1111111111111111;
backBuffer[46]=0b1111111111111111;
backBuffer[47]=0b1111111111111111;
backBuffer[48]=0b1111111111111111;
backBuffer[49]=0b1111111111111111;
backBuffer[50]=0b1111111111111111;
backBuffer[51]=0b1111111111111111;
backBuffer[52]=0b1111111111111111;
backBuffer[53]=0b1111111111111111;
backBuffer[54]=0b1111111111111111;
backBuffer[55]=0b1111111111111111;
backBuffer[56]=0b1111111111111111;
backBuffer[57]=0b1111111111111111;
backBuffer[58]=0b1111111111111111;
backBuffer[59]=0b1111111111111111;
backBuffer[60]=0b1111111111111111;
backBuffer[61]=0b1111111111111111;
backBuffer[62]=0b1111111111111111;
backBuffer[63]=0b1111111111111111;
backBuffer[64]=0b1111111111111111;
backBuffer[65]=0b1111111111111111;
backBuffer[66]=0b1111111111111111;
backBuffer[67]=0b1111111111111111;
backBuffer[68]=0b1111111111111111;
backBuffer[69]=0b1111111111111111;
backBuffer[70]=0b1111111111111111;
backBuffer[71]=0b1111111111111111;
backBuffer[72]=0b1111111111111111;
backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run
}
void Image::setBuffer_Image6()
{
backBuffer[0]=0b1111111111111111;
backBuffer[1]=0b1111111111111111;
backBuffer[2]=0b1111111111111111;
backBuffer[3]=0b1111111111111111;
backBuffer[4]=0b1111111111111111;
backBuffer[5]=0b1111111111111111;
backBuffer[6]=0b1111111111111111;
backBuffer[7]=0b1111111111111111;
backBuffer[8]=0b1111111111111111;
backBuffer[9]=0b1111111111111111;
backBuffer[10]=0b1111111111111111;
backBuffer[11]=0b1111111111111111;
backBuffer[12]=0b1110011111110011;
backBuffer[13]=0b1110111111110011;
backBuffer[14]=0b1100111111110011;
backBuffer[15]=0b1100000000000011;
backBuffer[16]=0b1100000000000011;
backBuffer[17]=0b1100000000000011;
backBuffer[18]=0b1111111111110011;
backBuffer[19]=0b1111111111110011;
backBuffer[20]=0b1111111111111111;
backBuffer[21]=0b1111111111111111;
backBuffer[22]=0b1111111111111111;
backBuffer[23]=0b1111111111110111;
backBuffer[24]=0b1110111111110111;
backBuffer[25]=0b1110111111110011;
backBuffer[26]=0b1100111001110011;
backBuffer[27]=0b1100111001110011;
backBuffer[28]=0b1100111001110011;
backBuffer[29]=0b1110000000000111;
backBuffer[30]=0b1110000100000111;
backBuffer[31]=0b1111001110001111;
backBuffer[32]=0b1111111111111111;
backBuffer[33]=0b1111111111111111;
backBuffer[34]=0b1111111111111111;
backBuffer[35]=0b1111111111111111;
backBuffer[36]=0b1111100011100011;
backBuffer[37]=0b1111100011100011;
backBuffer[38]=0b1111100011100011;
backBuffer[39]=0b1111111111111111;
backBuffer[40]=0b1111111111111111;
backBuffer[41]=0b1111111111111111;
backBuffer[42]=0b1111111111110111;
backBuffer[43]=0b1110111111110111;
backBuffer[44]=0b1110111111110011;
backBuffer[45]=0b1100111001110011;
backBuffer[46]=0b1100111001110011;
backBuffer[47]=0b1100111001110011;
backBuffer[48]=0b1110000000000111;
backBuffer[49]=0b1110000100000111;
backBuffer[50]=0b1111001110001111;
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[63]=0b1111111111111111;
backBuffer[64]=0b1111111111111111;
backBuffer[65]=0b1111111111111111;
backBuffer[66]=0b1111111111111111;
backBuffer[67]=0b1111111111111111;
backBuffer[68]=0b1111111111111111;
backBuffer[69]=0b1111111111111111;
backBuffer[70]=0b1111111111111111;
backBuffer[71]=0b1111111111111111;
backBuffer[72]=0b1111111111111111;
backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run
}
void Image::setBuffer_Image7()
{
backBuffer[0]=0b1111111111111111;
backBuffer[1]=0b1111111111111111;
backBuffer[2]=0b1111111111111111;
backBuffer[3]=0b1111111111111111;
backBuffer[4]=0b1111111111111111;
backBuffer[5]=0b1111111111111111;
backBuffer[6]=0b1111111111111111;
backBuffer[7]=0b1111111111111111;
backBuffer[8]=0b1111111111111111;
backBuffer[9]=0b1111111111111111;
backBuffer[10]=0b1111111111111111;
backBuffer[11]=0b1111111111111111;
backBuffer[12]=0b1110011111110011;
backBuffer[13]=0b1110111111110011;
backBuffer[14]=0b1100111111110011;
backBuffer[15]=0b1100000000000011;
backBuffer[16]=0b1100000000000011;
backBuffer[17]=0b1100000000000011;
backBuffer[18]=0b1111111111110011;
backBuffer[19]=0b1111111111110011;
backBuffer[20]=0b1111111111111111;
backBuffer[21]=0b1111111111111111;
backBuffer[22]=0b1111111111111111;
backBuffer[23]=0b1111111111110111;
backBuffer[24]=0b1110111111110111;
backBuffer[25]=0b1110111111110011;
backBuffer[26]=0b1100111001110011;
backBuffer[27]=0b1100111001110011;
backBuffer[28]=0b1100111001110011;
backBuffer[29]=0b1110000000000111;
backBuffer[30]=0b1110000100000111;
backBuffer[31]=0b1111001110001111;
backBuffer[32]=0b1111111111111111;
backBuffer[33]=0b1111111111111111;
backBuffer[34]=0b1111111111111111;
backBuffer[35]=0b1111111111111111;
backBuffer[36]=0b1111100011100011;
backBuffer[37]=0b1111100011100011;
backBuffer[38]=0b1111100011100011;
backBuffer[39]=0b1111111111111111;
backBuffer[40]=0b1111111111111111;
backBuffer[41]=0b1111111111111111;
backBuffer[42]=0b1111111111111111;
backBuffer[43]=0b1100000011110111;
backBuffer[44]=0b1100000011110111;
backBuffer[45]=0b1100110011110011;
backBuffer[46]=0b1100110011110011;
backBuffer[47]=0b1100110011110011;
backBuffer[48]=0b1100110001100111;
backBuffer[49]=0b1100111000000111;
backBuffer[50]=0b1111111100001111;
backBuffer[51]=0b1111111111111111;
backBuffer[52]=0b1111111111111111;
backBuffer[53]=0b1111111111111111;
backBuffer[54]=0b1111100011111111;
backBuffer[55]=0b1110000001110111;
backBuffer[56]=0b1110000001110111;
backBuffer[57]=0b1100111100110011;
backBuffer[58]=0b1100111100110011;
backBuffer[59]=0b1100111101110011;
backBuffer[60]=0b1110011001100111;
backBuffer[61]=0b1110000000000111;
backBuffer[62]=0b1111000000001111;
backBuffer[63]=0b1111111111111111;
backBuffer[64]=0b1111111111111111;
backBuffer[65]=0b1111111111111111;
backBuffer[66]=0b1111111111111111;
backBuffer[67]=0b1111111111111111;
backBuffer[68]=0b1111111111111111;
backBuffer[69]=0b1111111111111111;
backBuffer[70]=0b1111111111111111;
backBuffer[71]=0b1111111111111111;
backBuffer[72]=0b1111111111111111;
backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run
}
void Image::setBuffer_Image8()
{
backBuffer[0]=0b1111111111111111;
backBuffer[1]=0b1111111111111111;
backBuffer[2]=0b1111111111111111;
backBuffer[3]=0b1111111111111111;
backBuffer[4]=0b1111111111111111;
backBuffer[5]=0b1111111111111111;
backBuffer[6]=0b1111111111111111;
backBuffer[7]=0b1111111111111111;
backBuffer[8]=0b1111111111111111;
backBuffer[9]=0b1111111111111111;
backBuffer[10]=0b1111111111111111;
backBuffer[11]=0b1111111111111111;
backBuffer[12]=0b1110011111110011;
backBuffer[13]=0b1110111111110011;
backBuffer[14]=0b1100111111110011;
backBuffer[15]=0b1100000000000011;
backBuffer[16]=0b1100000000000011;
backBuffer[17]=0b1100000000000011;
backBuffer[18]=0b1111111111110011;
backBuffer[19]=0b1111111111110011;
backBuffer[20]=0b1111111111111111;
backBuffer[21]=0b1111111111111111;
backBuffer[22]=0b1111111111111111;
backBuffer[23]=0b1111111100011111;
backBuffer[24]=0b1111111000011111;
backBuffer[25]=0b1111100010011111;
backBuffer[26]=0b1111001110011111;
backBuffer[27]=0b1110011110011111;
backBuffer[28]=0b1100011110011111;
backBuffer[29]=0b1100000000000011;
backBuffer[30]=0b1100000000000011;
backBuffer[31]=0b1111111110011111;
backBuffer[32]=0b1111111110011111;
backBuffer[33]=0b1111111111111111;
backBuffer[34]=0b1111111111111111;
backBuffer[35]=0b1111111111111111;
backBuffer[36]=0b1111100011100011;
backBuffer[37]=0b1111100011100011;
backBuffer[38]=0b1111100011100011;
backBuffer[39]=0b1111111111111111;
backBuffer[40]=0b1111111111111111;
backBuffer[41]=0b1111111111111111;
backBuffer[42]=0b1111100000011111;
backBuffer[43]=0b1111000000001111;
backBuffer[44]=0b1110000000000111;
backBuffer[45]=0b1100111111110011;
backBuffer[46]=0b1100111111110011;
backBuffer[47]=0b1100111111110011;
backBuffer[48]=0b1110011111100111;
backBuffer[49]=0b1110000000000111;
backBuffer[50]=0b1111000000001111;
backBuffer[51]=0b1111110000111111;
backBuffer[52]=0b1111111111111111;
backBuffer[53]=0b1111111111111111;
backBuffer[54]=0b1111100000011111;
backBuffer[55]=0b1111000000001111;
backBuffer[56]=0b1110000000000111;
backBuffer[57]=0b1100111111110011;
backBuffer[58]=0b1100111111110011;
backBuffer[59]=0b1100111111110011;
backBuffer[60]=0b1110011111100111;
backBuffer[61]=0b1110000000000111;
backBuffer[62]=0b1111000000001111;
backBuffer[63]=0b1111110000111111;
backBuffer[64]=0b1111111111111111;
backBuffer[65]=0b1111111111111111;
backBuffer[66]=0b1111111111111111;
backBuffer[67]=0b1111111111111111;
backBuffer[68]=0b1111111111111111;
backBuffer[69]=0b1111111111111111;
backBuffer[70]=0b1111111111111111;
backBuffer[71]=0b1111111111111111;
backBuffer[72]=0b1111111111111111;
backBuffer[73]=0b1111111111111111;
backBuffer[74]=0b1111111111111111;
flag_updating=true; //make update run flag_updating=true; //make update run
} }

View File

@ -56,10 +56,25 @@ void loop() {
flip.setBuffer_Image4(); flip.setBuffer_Image4();
break; break;
case 4:
flip.setBuffer_Image5();
break;
case 5:
flip.setBuffer_Image6();
break;
case 6:
flip.setBuffer_Image7();
break;
case 7:
flip.setBuffer_Image8();
break;
} }
image++; image++;
image%=4; //image+=1+random(8-2);
image%=8;
@ -69,7 +84,7 @@ void loop() {
Serial.println(_randomvalue); Serial.println(_randomvalue);
flip.setBuffer_random(_randomvalue); flip.setBuffer_random(_randomvalue);
*/ */
/* /*
for (uint8_t _x=0;_x<COLUMNS;_x++) { for (uint8_t _x=0;_x<COLUMNS;_x++) {
uint8_t _y=(sin( loopmillis/100000.0 + _x/5.0 )/2+0.5)*15+0.5; uint8_t _y=(sin( loopmillis/100000.0 + _x/5.0 )/2+0.5)*15+0.5;
uint16_t _row=pow(2, _y); uint16_t _row=pow(2, _y);
@ -79,12 +94,13 @@ void loop() {
last_change=loopmillis; last_change=loopmillis;
} }
//UpdateReturn result=flip.updateByColumn(true,true,true); //0=not finished, 1=finished UpdateReturn result=flip.updateByColumn(false,true,true); //0=not finished, 1=finished
UpdateReturn result=flip.updateByColumn(true,false,false); //0=not finished, 1=finished //UpdateReturn result=flip.updateByColumn(true,false,false); //0=not finished, 1=finished <- most simple
if (result == finished) //just finished if (result == finished) //just finished
{ {
unsigned long duration=millis()-last_change; unsigned long duration=millis()-last_change;
@ -92,7 +108,7 @@ void loop() {
Serial.print("Update max took "); Serial.print(flip.updateDuration); Serial.println(" ms"); Serial.print("Update max took "); Serial.print(flip.updateDuration); Serial.println(" ms");
flip.updateDuration=0; //reset flip.updateDuration=0; //reset
//flip.shuffleOrder(1); flip.shuffleOrder(10);
} }
} }