SimpleExpressions/src/Shapes.h

122 lines
1.7 KiB
C
Raw Permalink 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-12-01 12:51:50 +00:00
#define frameCount 19
2017-11-23 11:28:47 +00:00
#define colorFrameCount 1
// TODO: calculate me
2017-11-28 11:29:38 +00:00
const PROGMEM 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}
},
};
2017-11-28 11:29:38 +00:00
const PROGMEM MulticolorFrame colorShapes[] = {
2017-11-23 11:28:47 +00:00
{
"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