1
0
mirror of https://github.com/s00500/SimpleExpressions synced 2024-11-23 11:00:54 +00:00
SimpleExpressions/Shapes.h

122 lines
1.6 KiB
C
Raw Normal View History

2017-11-20 13:59:19 +00:00
#ifndef Shapes_h
#define Shapes_h
2017-11-21 23:30:35 +00:00
struct Frame
{
2017-11-22 12:50:16 +00:00
char name[20];
2017-11-23 11:28:47 +00:00
bool data[7];
2017-11-21 23:30:35 +00:00
}
typedef Frame;
2017-11-23 11:28:47 +00:00
struct MulticolorFrame
{
char name[20];
int data[7][3];
}
typedef MulticolorFrame;
2017-11-21 12:09:40 +00:00
//***********************************************************************************
//*********************************MOUTHS DEFINES************************************
//***********************************************************************************
2017-11-23 11:28:47 +00:00
#define frameCount 18
#define colorFrameCount 1
// TODO: calculate me
2017-11-22 15:20:14 +00:00
const Frame shapes[] = {
2017-11-21 23:30:35 +00:00
{
"zeros",
2017-11-23 11:28:47 +00:00
{0, 0, 0, 0, 0, 0, 0}
2017-11-21 23:30:35 +00:00
},
{
2017-11-22 12:50:16 +00:00
"happySmall",
2017-11-23 11:28:47 +00:00
{0, 0, 1, 1, 0, 0, 0}
2017-11-22 12:50:16 +00:00
},
{
"happyFull",
2017-11-23 11:28:47 +00:00
{0, 1, 1, 1, 1, 0, 0}
2017-11-22 12:50:16 +00:00
},
{
"sadSmall",
2017-11-23 11:28:47 +00:00
{0, 0, 0, 0, 0, 1, 1}
2017-11-22 12:50:16 +00:00
},
{
"sadFull",
2017-11-23 11:28:47 +00:00
{0, 1, 0, 0, 1, 1, 1}
},
{
"neutral",
{1, 1, 0, 0, 1, 0, 0}
},
{
"circle",
{0, 1, 1, 1, 1, 1, 1}
},
{
"center",
{1, 0, 0, 0, 0, 0, 0}
},
{
"hook",
{1, 0, 0, 1, 1, 0, 1}
},
{
"upsidedownhook",
{1, 0, 1, 0, 1, 1, 0}
},
{
"kooh",
{1, 1, 1, 0, 0, 1, 0}
},
{
"upsidedownkooh",
{1, 1, 0, 1, 0, 0, 1}
},
{
"cross",
{1, 0, 1, 1, 0, 1, 1}
},
{
"rect",
{0, 0, 1, 1, 0, 1, 1}
},
{
"leftarrow",
{1, 1, 0, 1, 1, 1, 0}
},
{
"rightarrow",
{1, 1, 1, 0, 1, 0, 1}
},
{
"lefthalf",
{0, 0, 0, 1, 1, 1, 0}
},
{
"righthalf",
{0, 1, 1, 0, 0, 0, 1}
},
};
const MulticolorFrame colorShapes[] = {
{
"colorCircle",
2017-11-22 12:50:16 +00:00
{
2017-11-23 11:28:47 +00:00
{50,0,0},
{0,50,0},
{0,0,50},
{50,0,0},
{0,50,0},
{0,0,50},
{50,0,0}
2017-11-22 12:50:16 +00:00
}
2017-11-22 15:20:14 +00:00
}
2017-11-21 12:09:40 +00:00
};
2017-11-20 13:59:19 +00:00
#endif