//ПАРХАЮЩАЯ АНИМАЦИЯ
#include <GyverMAX7219.h>
MAX7219 < 2 , 2 , 5 > mtrx;
void setup() {
mtrx.begin();
mtrx.setBright(5);
mtrx.setRotation(0);
}
const uint8_t a_1[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x6c, 0x80, 0x90, 0x00, 0x81, 0x00, 0x62, 0x00, 0x1c, 0x00, 0x62, 0x00, 0x81, 0x80, 0x90, 0x80, 0x6c, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00};
const uint8_t a_2[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x08, 0x20, 0x17, 0x40, 0x20, 0x80, 0x18, 0x00, 0x0f, 0x80, 0x18, 0x40, 0x20, 0x20, 0x17, 0xc0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
const uint8_t a_3[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x74, 0x00, 0x88, 0x00, 0x10, 0x01, 0xe0, 0x02, 0x10, 0x01, 0x88, 0x00, 0x74, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
const uint8_t a_4[] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x08, 0x20, 0x17, 0x40, 0x20, 0x80, 0x18, 0x00, 0x0f, 0x80, 0x18, 0x40, 0x20, 0x20, 0x17, 0xc0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
void loop(){
mtrx.drawBitmap(0,0,a_1,16,16);
mtrx.update();
delay(250);
mtrx.clear();
mtrx.drawBitmap(0,0,a_2,16,16);
mtrx.update();
delay(250);
mtrx.clear();
mtrx.drawBitmap(0,0,a_3,16,16);
mtrx.update();
delay(250);
mtrx.clear();
mtrx.drawBitmap(0,0,a_4,16,16);
mtrx.update();
delay(250);
mtrx.clear();
}