1
0
mirror of https://github.com/s00500/SimpleExpressions synced 2025-07-07 01:10:19 +00:00

Rebuilding mouth loading system

This commit is contained in:
2017-11-22 00:30:35 +01:00
parent 1b98b31c25
commit f8795b892e
4 changed files with 86 additions and 69 deletions

View File

@ -1,47 +1,42 @@
#ifndef Shapes_h
#define Shapes_h
struct Frame
{
String name;
unsigned int data[7][3];
}
typedef Frame;
//***********************************************************************************
//*********************************MOUTHS DEFINES************************************
//***********************************************************************************
const int zeros[7][3] = {
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
const Frame shapes[] = {
{
"zeros",
{
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
}
},
{
"happySimple",
{
{0,0,0},
{0,150,0},
{0,150,0},
{0,150,0},
{0,150,0},
{0,0,0},
{0,0,0},
}
}
};
const int happySimple[7][3] = {
{0,0,0},
{0,150,0},
{0,150,0},
{0,150,0},
{0,150,0},
{0,0,0},
{0,0,0},
};
const int testing[7][3] = {
{0,0,0},
{0,150,0},
{0,150,0},
{0,150,0},
{0,150,0},
{0,0,0},
{0,0,0},
};
//giving all moths a unique ID
#define M_ZERO 0
#define M_HAPPY_SIMPLE 1
#define M_TESTING 2
#endif