#include "LedControl.h" int clockPin = 10; int csPin = 11; int dataPin = 12; LedControl lc = LedControl(dataPin, clockPin, csPin, 1); void setup() { lc.shutdown(0, false); lc.setIntensity(0, 8); lc.clearDisplay(0); } void loop() { asterisk(); delay(1000); heart(); delay(1000); lc.clearDisplay(0); delay(1000); } void asterisk() { byte a[8] = { B10011001, B01011010, B00111100, B11111111, B11111111, B00111100, B01011010, B10011001 }; lc.setRow(0, 0, a[0]); lc.setRow(0, 1, a[1]); lc.setRow(0, 2, a[2]); lc.setRow(0, 3, a[3]); lc.setRow(0, 4, a[4]); lc.setRow(0, 5, a[5]); lc.setRow(0, 6, a[6]); lc.setRow(0, 7, a[7]); } void heart() { byte h[8] = { B00000000, B01100110, B10011001, B10000001, B10000001, B01000010, B00100100, B00011000 }; lc.setRow(0, 0, h[0]); lc.setRow(0, 1, h[1]); lc.setRow(0, 2, h[2]); lc.setRow(0, 3, h[3]); lc.setRow(0, 4, h[4]); lc.setRow(0, 5, h[5]); lc.setRow(0, 6, h[6]); lc.setRow(0, 7, h[7]); }