#include <MD_MAX72xx.h>
// Turn on debug statements to the serial output
#define DEBUG 1
#if DEBUG
#define PRINT(s, x) { Serial.print(F(s)); Serial.print(x); }
#define PRINTS(x) Serial.print(F(x))
#define PRINTD(x) Serial.println(x, DEC)
#else
#define PRINT(s, x)
#define PRINTS(x)
#define PRINTD(x)
#endif
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW/*PAROLA_HW/FC16_HW*/
#define MAX_DEVICES 14
#define CLK_PIN 13 // or SCK
#define DATA_PIN 11 // or MOSI
#define CS_PIN 10 // or SS
MD_MAX72XX mx = MD_MAX72XX(HARDWARE_TYPE, CS_PIN, MAX_DEVICES);
// Specific SPI hardware interface
//MD_MAX72XX mx = MD_MAX72XX(HARDWARE_TYPE, SPI1, CS_PIN, MAX_DEVICES);
// Arbitrary pins
//MD_MAX72XX mx = MD_MAX72XX(HARDWARE_TYPE, DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
#define DELAYTIME 60
//pin dei pulsanti
#define PULS1 9
#define PULS2 8
#define PULS3 7
#define PULS4 6
#define PULS5 5
#define PULS6 4
#define PULS7 3
#define PULS8 2
byte face=1; //controllo della faccia
short tempo; //tempo di blink
void setup()
{
mx.begin();
#if DEBUG
Serial.begin(9600);
#endif
PRINTS("\[Test Protogen os]");
if(!DEBUG) OSBoot();//if debug is 1 i don't show the booting animation
uint8_t cm=0;
}
void loop()
{
if(DEBUG) Serial.println(face);//if debug is 1 i check the face variable
tempo=0;
switch(face){
case 1://i show the face assigned to the number
idleFace();
loopBlink(face);
break;
case 2:
happyFace();
loopBlink(face);
break;
case 3:
angyFace();
loopBlink(face);
break;
case 4:
playfulFace();
loopBlink(face);
break;
case 5:
sillyFace();
loopBlink(face);
break;
case 6:
kinkyFace();
loopBlink(face);
break;
case 7:
deathFace();
loopBlink(face);
break;
case 8:
idleFace();
loopBlink(face);
break;
}
}
void printSprite(uint8_t sprite[], byte setPosition){//function for printing the sprites
mx.control(MD_MAX72XX::UPDATE, MD_MAX72XX::OFF); //auto update off
mx.setBuffer(((setPosition+1)*COL_SIZE)-1, COL_SIZE, sprite); //set of the sprite
mx.control(MD_MAX72XX::UPDATE, MD_MAX72XX::ON); //auto update on
}
void idleFace(){//idle face components
edgyEyes();
normalNose();
normalMouth();
edgyEyesBlink();
}
void happyFace(){//happy face components
happyEyes();
normalNose();
normalMouth();
}
void angyFace(){ //hungry face components
angyEyes();
normalNose();
angyMouth();
angyEyesBlink();
}
void playfulFace(){ //playful face components
playfulEyes();
normalNose();
normalMouth();
}
void sillyFace(){//silly face components
owoEyes();
normalNose();
wMouth();
owoEyesBlink();
}
void kinkyFace(){//kinky face components
uwuEyes();
normalNose();
wMouth();
}
void deathFace(){ //death face components
deathEyes();
normalNose();
wMouth();
}
void setOnLine(byte x, byte y, byte line){ //turn on the a line from an initial matrix coordinate to another
for(byte i=x ; i<y ; i++) mx.setPoint(line, i, true);
}
void setOffLine(byte x, byte y, byte line){ //turn off the a line from an initial matrix coordinate to another
for(byte i=x ; i<y ; i++) mx.setPoint(line, i, false);
}
void loopBlink(byte x){
while(tempo<=7000){//'delay' for being receptive and don't do the blick animation every time but only every 7 seconds
delay(1);
if(digitalRead(PULS1)) face=1;//the value of face will be passed to the switch
if(digitalRead(PULS2)) face=2;
if(digitalRead(PULS3)) face=3;
if(digitalRead(PULS4)) face=4;
if(digitalRead(PULS5)) face=5;
if(digitalRead(PULS6)) face=6;
if(digitalRead(PULS7)) face=7;
if(digitalRead(PULS8)) face=8;
if(face!=x) {
mx.clear();//if face change it clears all the matrixes and exit from the while
tempo=7000;
}
tempo++;
}
}
void OSBoot(){//aestetic funcions for the protoggen booting animation
//mx.control(MD_MAX72XX::setFont());
scrollText("PROTOGEN OS 2.5 BOOTING..");
delay(500);//delay for reading
mx.clear();//i clear the matrix for not exploding the previous pixels
uint8_t sys1[COL_SIZE]{
0b00000110,
0b01001001,
0b01001001,
0b01001001,
0b00110001,
0b00000011,
0b00000100,
0b01111000
};
uint8_t sys2[COL_SIZE]{
0b00000110,
0b01001001,
0b01001001,
0b01001001,
0b00110001,
0b00000000,
0b00000000,
0b00000000
};
for(byte j=0 ; j<3 ; j++){
for(byte i=0 ; i<10 ; i++){
printSprite(sys1, 3); //i print the first matrix onto the 3 connected matrix
printSprite(sys2, 2); //print the second matrix onto the second connected matrix
mx.setChar(17, '1'+j); //increase every time the system to boot
for(byte j=0 ; j<11 ; j++){
mx.setChar(11, '0'+i);
mx.setChar(5, '0'+j);
delay(5);
}
mx.clear();
}
printSprite(sys1, 3); //i print the first matrix onto the 3 connected matrix
printSprite(sys2, 2); //print the second matrix onto the second connected matrix
mx.setChar(17, '1'+j); //i print another time the system to boot
mx.setChar(10, 'O'); //"avvio" del sistema desiderato
mx.setChar(5, 'N');
delay(1500);
}
mx.clear();
}
void scrollText(const char *p){//function for the horizontal scrolling of the words
uint8_t charWidth;
uint8_t cBuf[8]; // this should be ok for all built-in fonts
PRINTS("\nprotogen booting..");
mx.clear();
while (*p != '\0'){
charWidth = mx.getChar(*p++, sizeof(cBuf) / sizeof(cBuf[0]), cBuf);
for (uint8_t i=0; i<=charWidth; i++) {// allow space between characters
mx.transform(MD_MAX72XX::TSL);
if (i < charWidth) mx.setColumn(0, cBuf[i]);
delay(DELAYTIME);
}
}
}
void edgyEyesBlink(){
PRINTS("\nedgy eyes blinking..");
byte line=0;
setOffLine(32, 48, line);
setOffLine(64, 80, line);
line++;
setOffLine(32, 48, line);
setOffLine(64, 80, line);
delay(20);
line++;
setOffLine(33, 48, line);
setOffLine(64, 79, line);
delay(20);
line++;
setOffLine(35, 47, line);
setOffLine(65, 77, line);
line++;
setOffLine(35, 47, line);
setOffLine(65, 77, line);
line++;
delay(10);
line=7;
setOffLine(39, 43, line);
setOffLine(69, 73, line);
delay(20);
line--;
setOffLine(37, 45, line);
setOffLine(67, 75, line);
delay(20);
line--;
setOffLine(36, 46, line);
setOffLine(66, 76, line);
delay(130);///////////////////////////////////////////////////////
setOnLine(36, 46, line);
setOnLine(66, 76, line);
delay(20);
line++;
setOnLine(37, 45, line);
setOnLine(67, 75, line);
delay(20);
line++;
setOnLine(39, 43, line);
setOnLine(69, 73, line);
delay(20);
line=5;
line--;
setOnLine(35, 47, line);
setOnLine(65, 77, line);
line--;
setOnLine(35, 47, line);
setOnLine(65, 77, line);
delay(20);
line--;
setOnLine(33, 48, line);
setOnLine(64, 79, line);
delay(20);
line--;
setOnLine(32, 48, line);
setOnLine(64, 80, line);
line--;
setOnLine(32, 48, line);
setOnLine(64, 80, line);
}
void angyEyesBlink(){
PRINTS("\nangy eyes blinking..");
byte line=0;
setOffLine(32, 35, line);
setOffLine(77, 80, line);
delay(30);
line++;
setOffLine(32, 38, line);
setOffLine(74, 80, line);
delay(30);
line++;
setOffLine(33, 41, line);
setOffLine(71, 79, line);
delay(30);
line++;
setOffLine(34, 44, line);
setOffLine(68, 78, line);
delay(30);
line++;
setOffLine(34, 46, line);
setOffLine(66, 78, line);
delay(30);
line=7;
setOffLine(37, 45, line);
setOffLine(67, 75, line);
delay(30);
line--;
setOffLine(36, 46, line);
setOffLine(66, 76, line);
delay(30);
line--;
setOffLine(35, 47, line);
setOffLine(65, 77, line);
delay(130);///////////////////////////////////////////////////////
setOnLine(35, 47, line);
setOnLine(65, 77, line);
delay(30);
line++;
setOnLine(36, 46, line);
setOnLine(66, 76, line);
delay(30);
line++;
setOnLine(37, 45, line);
setOnLine(67, 75, line);
delay(30);
line=4;
setOnLine(34, 46, line);
setOnLine(66, 78, line);
delay(30);
line--;
setOnLine(34, 44, line);
setOnLine(68, 78, line);
delay(30);
line--;
setOnLine(33, 41, line);
setOnLine(71, 79, line);
delay(30);
line--;
setOnLine(32, 38, line);
setOnLine(74, 80, line);
delay(30);
line--;
setOnLine(32, 35, line);
setOnLine(77, 80, line);
}
void owoEyesBlink(){
PRINTS("\nowo eyes blinking..");
byte i, line=0;
setOffLine(38, 42, line);
setOffLine(70, 74, line);
delay(10);
line++;
for(i=37 ; i<43 ; i++){
if((i>=37 && i<=38) || (i>=41 && i<=42)) mx.setPoint(line, i, false);
}
for(i=69 ; i<75 ; i++){
if((i>=69 && i<=70) || (i>=73 && i<=74)) mx.setPoint(line, i, false);
}
delay(10);
line++;
for(i=36 ; i<44 ; i++){
if((i>=36 && i<=37) || (i>=42 && i<=43)) mx.setPoint(line, i, false);
}
for(i=68 ; i<76 ; i++){
if((i>=68 && i<=69) || (i>=74 && i<=75)) mx.setPoint(line, i, false);
}
delay(10);
line++;
mx.setPoint(line, 36, false);
mx.setPoint(line, 43, false);
mx.setPoint(line, 68, false);
mx.setPoint(line, 75, false);
delay(10);
line++;
mx.setPoint(line, 36, false);
mx.setPoint(line, 43, false);
mx.setPoint(line, 68, false);
mx.setPoint(line, 75, false);
delay(10);
line=7;
setOffLine(38, 42, line);
setOffLine(70, 74, line);
delay(10);
line--;
for(i=37 ; i<43 ; i++){
if((i>=37 && i<=38) || (i>=41 && i<=42)) mx.setPoint(line, i, false);
}
for(i=69 ; i<75 ; i++){
if((i>=69 && i<=70) || (i>=73 && i<=74)) mx.setPoint(line, i, false);
}
delay(10);
line--;
for(i=36 ; i<44 ; i++){
if((i>=36 && i<=37) || (i>=42 && i<=43)) mx.setPoint(line, i, false);
}
for(i=68 ; i<76 ; i++){
if((i>=68 && i<=69) || (i>=74 && i<=75)) mx.setPoint(line, i, false);
}
delay(130);///////////////////////////////////////////////////////
for(i=36 ; i<44 ; i++){
if((i>=36 && i<=37) || (i>=42 && i<=43)) mx.setPoint(line, i, true);
}
for(i=68 ; i<76 ; i++){
if((i>=68 && i<=69) || (i>=74 && i<=75)) mx.setPoint(line, i, true);
}
delay(10);
line++;
for(i=37 ; i<43 ; i++){
if((i>=37 && i<=38) || (i>=41 && i<=42)) mx.setPoint(line, i, true);
}
for(i=69 ; i<75 ; i++){
if((i>=69 && i<=70) || (i>=73 && i<=74)) mx.setPoint(line, i, true);
}
delay(10);
line++;
setOnLine(38, 42, line);
setOnLine(70, 74, line);
delay(10);
line=4;
mx.setPoint(line, 36, true);
mx.setPoint(line, 43, true);
mx.setPoint(line, 68, true);
mx.setPoint(line, 75, true);
delay(10);
line--;
mx.setPoint(line, 36, true);
mx.setPoint(line, 43, true);
mx.setPoint(line, 68, true);
mx.setPoint(line, 75, true);
delay(10);
line--;
for(i=36 ; i<44 ; i++){
if((i>=36 && i<=37) || (i>=42 && i<=43)) mx.setPoint(line, i, true);
}
for(i=68 ; i<76 ; i++){
if((i>=68 && i<=69) || (i>=74 && i<=75)) mx.setPoint(line, i, true);
}
delay(10);
line--;
for(i=37 ; i<43 ; i++){
if((i>=37 && i<=38) || (i>=41 && i<=42)) mx.setPoint(line, i, true);
}
for(i=69 ; i<75 ; i++){
if((i>=69 && i<=70) || (i>=73 && i<=74)) mx.setPoint(line, i, true);
}
delay(10);
line--;
setOnLine(38, 42, line);
setOnLine(70, 74, line);
}
void happyEyes(){
PRINTS("\nhappy eyes blinking..");
uint8_t happyEyesLeft1[COL_SIZE]{
0b00001110,
0b00001110,
0b00001110,
0b00001100,
0b00001100,
0b00011000,
0b00011000,
0b00110000,
};
uint8_t happyEyesleft2[COL_SIZE]{
0b00011000,
0b00111100,
0b00111110,
0b00011110,
0b00001111,
0b00001111,
0b00001111,
0b00001111,
};
uint8_t happyEyesright1[COL_SIZE]{
0b00001111,
0b00001111,
0b00001111,
0b00001111,
0b00011110,
0b00111110,
0b00111100,
0b00011000,
};
uint8_t happyEyesRight2[COL_SIZE]{
0b00110000,
0b00011000,
0b00011000,
0b00001100,
0b00001100,
0b00001110,
0b00001110,
0b00001110,
};
printSprite(happyEyesLeft1, 4);
printSprite(happyEyesleft2, 5);
printSprite(happyEyesright1, 8);
printSprite(happyEyesRight2, 9);
PRINTS("\nhappy eyes done");
}
void edgyEyes(){
PRINTS("\nedgy eye booting..");
uint8_t edgyEyesLeft1[COL_SIZE]{
0b11111111,
0b01111111,
0b01111111,
0b00111111,
0b00011111,
0b00000111,
0b00000111,
0b00000011
};
uint8_t edgyEyesleft2[COL_SIZE]{
0b00000111,
0b00011111,
0b00111111,
0b01111111,
0b01111111,
0b11111111,
0b11111111,
0b11111111
};
uint8_t edgyEyesright1[COL_SIZE]{
0b11111111,
0b11111111,
0b11111111,
0b01111111,
0b01111111,
0b00111111,
0b00011111,
0b00000111
};
uint8_t edgyEyesRight2[COL_SIZE]{
0b00000011,
0b00000111,
0b00000111,
0b00011111,
0b00111111,
0b01111111,
0b01111111,
0b11111111
};
printSprite(edgyEyesLeft1, 4);
printSprite(edgyEyesleft2, 5);
printSprite(edgyEyesright1, 8);
printSprite(edgyEyesRight2, 9);
PRINTS("\nedgy eye done");
}
void angyEyes(){
PRINTS("\nangy eyes booting..");
uint8_t angyEyesLeft1[COL_SIZE]{
0b11111100,
0b11111100,
0b11111110,
0b01111110,
0b00111110,
0b00011111,
0b00000111,
0b00000011
};
uint8_t angyEyesLeft2[COL_SIZE]{
0b00000000,
0b00100000,
0b01110000,
0b11110000,
0b11111000,
0b11111000,
0b11111000,
0b11111100
};
uint8_t angyEyesRight1[COL_SIZE]{
0b11111100,
0b11111000,
0b11111000,
0b11111000,
0b11110000,
0b01110000,
0b00100000,
0b00000000
};
uint8_t angyEyesRight2[COL_SIZE]{
0b00000011,
0b00000111,
0b00011111,
0b00111110,
0b01111110,
0b11111110,
0b11111100,
0b11111100
};
printSprite(angyEyesLeft1, 4);
printSprite(angyEyesLeft2, 6);
printSprite(angyEyesRight1, 8);
printSprite(angyEyesRight2, 9);
PRINTS("\nangy eyes done");
}
void playfulEyes(){
PRINTS("\nplayful eyes booting..");
uint8_t playfulEyesLeft1[COL_SIZE]{
0b11000110,
0b10000010,
0b10000010,
0b10000011,
0b00000001,
0b00000001,
0b00000001,
0b00000000
};
uint8_t playfulEyesLeft2[COL_SIZE]{
0b00010000,
0b00010000,
0b00111000,
0b00101000,
0b00101000,
0b01101100,
0b01000100,
0b01000100
};
uint8_t playfulEyesRight1[COL_SIZE]{
0b01000100,
0b01000100,
0b01101100,
0b00101000,
0b00101000,
0b00111000,
0b00010000,
0b00010000
};
uint8_t playfulEyesRight2[COL_SIZE]{
0b00000001,
0b00000001,
0b00000001,
0b10000011,
0b10000010,
0b10000010,
0b10000010,
0b11000110
};
printSprite(playfulEyesLeft1, 4);
printSprite(playfulEyesLeft2, 5);
printSprite(playfulEyesRight1, 8);
printSprite(playfulEyesRight2, 9);
PRINTS("\nplayful eyes done");
}
void owoEyes(){
PRINTS("\nowo eyes booting..");
uint8_t owoEyesLeftSide[COL_SIZE]{
0b10000001,
0b11000011,
0b01100110,
0b00111100,
0b00000000,
0b00000000,
0b00000000,
0b00000000
};
uint8_t owoEyesRightSide[COL_SIZE]{
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111100,
0b01100110,
0b11000011,
0b10000001
};
printSprite(owoEyesLeftSide, 4);
printSprite(owoEyesRightSide, 5);
printSprite(owoEyesLeftSide, 8);
printSprite(owoEyesRightSide, 9);
PRINTS("\nowo eyes done");
}
void uwuEyes(){
PRINTS("\nuwu eyes booting..");
uint8_t uwuEyesLeftSide[COL_SIZE]{
0b10000000,
0b11000000,
0b01110000,
0b00011111,
0b00000000,
0b00000000,
0b00000000,
0b00000000
};
uint8_t uwuEyesRightSide[COL_SIZE]{
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00011111,
0b01110000,
0b11000000,
0b10000000
};
printSprite(uwuEyesLeftSide, 4);
printSprite(uwuEyesRightSide, 5);
printSprite(uwuEyesLeftSide, 8);
printSprite(uwuEyesRightSide, 9);
PRINTS("\nuwu eyes done");
}
void deathEyes(){
PRINTS("\ndeath eyes booting..");
uint8_t deathEyesLeftSide[COL_SIZE]{
0b00011000,
0b00111100,
0b01111110,
0b01100110,
0b11100111,
0b11000011,
0b10000001,
0b10000001
};
uint8_t deathEyesRightSide[COL_SIZE]{
0b10000001,
0b10000001,
0b11000011,
0b11100111,
0b01100110,
0b01111110,
0b00111100,
0b00011000
};
printSprite(deathEyesLeftSide, 4);
printSprite(deathEyesRightSide, 5);
printSprite(deathEyesLeftSide, 8);
printSprite(deathEyesRightSide, 9);
PRINTS("\ndeath eyes done");
}
void normalNose(){
PRINTS("\nnormal nose booting..");
//left e right rispetto alla faccia del protogen
uint8_t leftboop[COL_SIZE]{
0b00111110,
0b00011111,
0b00000011,
0b00000011,
0b00000011,
0b00000011,
0b00000011,
0b00000001
};
uint8_t rightboop[COL_SIZE]{
0b00000001,
0b00000011,
0b00000011,
0b00000011,
0b00000011,
0b00000011,
0b00011111,
0b00111110
};
printSprite(leftboop, 6);
printSprite(rightboop, 7);
PRINTS("\nnormal nose done");
}
void normalMouth(){
PRINTS("\nnormal mouth booting..");
//left e right rispetto alla faccia del protogen
uint8_t leftNormalMouth1[COL_SIZE]{
0b00011000,
0b00011100,
0b00011100,
0b00010110,
0b00010111,
0b00010010,
0b00011110,
0b00011100
};
uint8_t leftNormalMouth2[COL_SIZE]{
0b10000000,
0b11000000,
0b11000000,
0b01100000,
0b01100000,
0b00110000,
0b00110000,
0b00011000
};
uint8_t leftNormalMouth3[COL_SIZE]{
0b00010000,
0b00110000,
0b00110000,
0b01100000,
0b01100000,
0b11000000,
0b11000000,
0b10000000
};
uint8_t leftNormalMouth4[COL_SIZE]{
0b11000000,
0b01100000,
0b01100000,
0b00110000,
0b00110000,
0b00011000,
0b00011000,
0b00011000
};
uint8_t rightNormalMouth1[COL_SIZE]{
0b00011000,
0b00011000,
0b00011000,
0b00110000,
0b00110000,
0b01100000,
0b01100000,
0b11000000
};
uint8_t rightNormalMouth2[COL_SIZE]{
0b10000000,
0b11000000,
0b11000000,
0b01100000,
0b01100000,
0b00110000,
0b00110000,
0b00010000
};
uint8_t rightNormalMouth3[COL_SIZE]{
0b00011000,
0b00110000,
0b00110000,
0b01100000,
0b01100000,
0b11000000,
0b11000000,
0b10000000
};
uint8_t rightNormalMouth4[COL_SIZE]{
0b00011100,
0b00011110,
0b00010010,
0b00010111,
0b00010110,
0b00011100,
0b00011100,
0b00011000
};
printSprite(leftNormalMouth1, 0);
printSprite(leftNormalMouth2, 1);
printSprite(leftNormalMouth3, 2);
printSprite(leftNormalMouth4, 3);
printSprite(rightNormalMouth1, 10);
printSprite(rightNormalMouth2, 11);
printSprite(rightNormalMouth3, 12);
printSprite(rightNormalMouth4, 13);
PRINTS("\nnormal mouth done ");
}
void angyMouth(){
PRINTS("\nangy mouth booting..");
//left e right in relation to the protogen face
uint8_t leftangyMouth1[COL_SIZE]{
0b01100000,
0b01000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000
};
uint8_t leftangyMouth2[COL_SIZE]{
0b00001110,
0b00001100,
0b00011100,
0b00011100,
0b00011000,
0b00111000,
0b00110000,
0b01110000
};
uint8_t leftangyMouth3[COL_SIZE]{
0b00001110,
0b00001111,
0b00001111,
0b00000111,
0b00000111,
0b00000111,
0b00000111,
0b00001110
};
uint8_t leftangyMouth4[COL_SIZE]{
0b01111100,
0b01111100,
0b01111100,
0b00111110,
0b00111110,
0b00011110,
0b00011110,
0b00011110
};
uint8_t rightangyMouth1[COL_SIZE]{
0b00011110,
0b00011110,
0b00011110,
0b00111110,
0b00111110,
0b01111100,
0b01111100,
0b01111100
};
uint8_t rightangyMouth2[COL_SIZE]{
0b00001110,
0b00000111,
0b00000111,
0b00000111,
0b00000111,
0b00001111,
0b00001111,
0b00001110
};
uint8_t rightangyMouth3[COL_SIZE]{
0b01110000,
0b00110000,
0b00111000,
0b00011000,
0b00011100,
0b00011100,
0b00001100,
0b00001110
};
uint8_t rightangyMouth4[COL_SIZE]{
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b01000000,
0b01100000
};
printSprite(leftangyMouth1, 0);
printSprite(leftangyMouth2, 1);
printSprite(leftangyMouth3, 2);
printSprite(leftangyMouth4, 3);
printSprite(rightangyMouth1, 10);
printSprite(rightangyMouth2, 11);
printSprite(rightangyMouth3, 12);
printSprite(rightangyMouth4, 13);
PRINTS("\nangy mouth done ");
}
void wMouth(){
PRINTS("\nw mouth booting..");
//left e right in relation to the protogen face
uint8_t leftWMouth1[COL_SIZE]{
0b00110000,
0b00011000,
0b00011100,
0b00010110,
0b00010111,
0b00010010,
0b00011110,
0b00011100
};
uint8_t leftWMouth2[COL_SIZE]{
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b01100000,
0b11000000,
0b11000000,
0b01100000
};
uint8_t leftWMouth3[COL_SIZE]{
0b01100000,
0b11000000,
0b11000000,
0b01100000,
0b00110000,
0b00011000,
0b00001100,
0b00000110
};
uint8_t leftWMouth4[COL_SIZE]{
0b00110000,
0b00011000,
0b00001100,
0b00000110,
0b00000110,
0b00001100,
0b00011000,
0b00110000
};
uint8_t rightWMouth1[COL_SIZE]{
0b00110000,
0b00011000,
0b00001100,
0b00000110,
0b00000110,
0b00001100,
0b00011000,
0b00110000
};
uint8_t rightWMouth2[COL_SIZE]{
0b00000110,
0b00001100,
0b00011000,
0b00110000,
0b01100000,
0b11000000,
0b11000000,
0b01100000
};
uint8_t rightWMouth3[COL_SIZE]{
0b01100000,
0b11000000,
0b11000000,
0b01100000,
0b00110000,
0b00011000,
0b00001100,
0b00000110
};
uint8_t rightWMouth4[COL_SIZE]{
0b00011100,
0b00011110,
0b00010010,
0b00010111,
0b00010110,
0b00011100,
0b00110000,
0b00110000
};
printSprite(leftWMouth1, 0);
printSprite(leftWMouth2, 1);
printSprite(leftWMouth3, 2);
printSprite(leftWMouth4, 3);
printSprite(rightWMouth1, 10);
printSprite(rightWMouth2, 11);
printSprite(rightWMouth3, 12);
printSprite(rightWMouth4, 13);
PRINTS("\nw mouth done ");
}