4.13.23
- owenmichael12333
- Apr 13, 2023
- 1 min read
This week I was able to convert all 28 frames of the raining animation to see how it would look if I were to do the entire gif and not just a couple frames. I am now planning on learning how to make an array that consists of the byteArrays that display the image so that I don't have to hardcode 28 frames for every animation.
matrix.drawBitmap(0, 0, RAIN0, x, y, BLACK, WHITE);
Serial.println(0);
matrix.show();
delay(DELAY);
matrix.clear();
matrix.drawBitmap(0, 0, RAIN1, x, y, BLACK, WHITE);
Serial.println(1);
matrix.show();
delay(DELAY);
matrix.clear();
matrix.drawBitmap(0, 0, RAIN2, x, y, BLACK, WHITE);
Serial.println(2);
matrix.show();
delay(DELAY);
matrix.clear();
matrix.drawBitmap(0, 0, RAIN3, x, y, BLACK, WHITE);
Serial.println(3);
matrix.show();
delay(DELAY);
matrix.clear();
matrix.drawBitmap(0, 0, RAIN4, x, y, BLACK, WHITE);
Serial.println(4);
matrix.show();
delay(DELAY);
matrix.clear();
...
(I tried uploading a GIF and it wouldn't work. Will fix tomorrow.)
Comments