// //******************************************
// // USE write() in replace to digitalWrite()
// // The diagram uses 16x16 matrix. Note that the 16th adress will not work
// // This will work with 15x15 boards
// //******************************************
#include "MUX_iParol.h"
byte listAll_Purple[] = {109, 125, 111, 95, 157, 173, 159, 143, 115, 131, 117, 101, 67, 83, 69, 53, 181, 182, 183, 198, 213, 195, 194, 193, 208, 223, 45, 44, 43, 28, 13, 31, 32, 33, 18, 3};
byte listAll_Orange[] = {106, 92, 78, 64, 50, 36, 22, 8, 24, 40, 56, 72, 88, 104, 120, 134, 148, 162, 176, 190, 204, 218, 202, 186, 170, 154, 138, 122, 211, 225, 15, 1, 76, 61, 62, 20, 5, 6, 10, 11, 26, 74, 75, 90, 150, 165, 164, 206, 221, 220, 216, 215, 200, 152, 151, 136};
byte listAll_Yellow[] = {107, 93, 79, 65, 51, 37, 23, 39, 55, 71, 87, 103, 119, 133, 147, 161, 175, 189, 203, 187, 171, 155, 139, 123, 81, 97, 113, 129, 145, 141, 127, 99, 85};
byte listAll_BlCorners1[] = {210, 196, 30, 16};
byte listAll_BlCorners2[] = {224, 212, 14, 2};
byte listAll_BlCorners3[] = {224, 209, 212, 197, 29, 14, 17, 2};
byte listAll_BlCorners[] = {224, 210, 209, 212, 197, 196, 30, 29, 14, 17, 16, 2};
byte listAll_PuCorners1[] = {181, 182, 213, 195, 194, 223, 45, 44, 13, 31, 32, 3};
byte listAll_PuCorners2[] = {181, 198, 213, 195, 208, 223, 45, 28, 13, 31, 18, 3};
byte listAll_PuCorners3[] = {183, 198, 213, 223, 208, 193, 43, 28, 13, 33, 18, 3};
byte listAll_PuCorners4[] = {182, 183, 198, 213, 194, 193, 208, 223, 44, 43, 28, 13, 32, 33, 18, 3};
byte listAll_PuCorners5[] = {181, 182, 183, 198, 213, 195, 194, 193, 208, 223, 45, 44, 43, 28, 13, 31, 32, 33, 18, 3};
byte listAll_GrCorners1[] = {222, 207, 180, 179, 178, 214, 199, 168, 167, 166, 27, 60, 59, 58, 12, 48, 47, 46, 19, 4};
byte listAll_GrCorners2[] = {222, 207, 192, 180, 179, 214, 199, 184, 167, 166, 27, 60, 59, 42, 12, 47, 46, 34, 19, 4};
byte listAll_GrCorners3[] = {4, 19, 34, 49, 169, 184, 199, 214, 12, 27, 42, 57, 177, 192, 207, 222, 46, 166, 60, 180};
byte listAll_GrCorners4[] = {4, 19, 34, 48, 49, 169, 168, 184, 199, 214, 12, 27, 42, 57, 58, 177, 178, 192, 207, 222};
byte listAll_GrCorners5[] = {4, 19, 34, 47, 48, 49, 169, 168, 167, 179, 184, 199, 214, 12, 27, 42, 57, 58, 59, 177, 178, 192, 207, 222};
byte listAll_GrCorners6[] = {4, 19, 34, 46, 47, 48, 49, 169, 168, 167, 166, 184, 199, 214, 12, 27, 42, 57, 58, 59, 60, 179, 180, 177, 178, 192, 207, 222};
byte listAll_OrDLs1[] = {106, 92, 78, 64, 50, 36, 22, 8, 24, 40, 56, 72, 88, 104, 120, 134, 148, 162, 176, 190, 204, 218, 202, 186, 170, 154, 138, 122, 76, 61, 62, 20, 5, 6, 10, 11, 26, 74, 75, 90, 150, 165, 164, 206, 221, 220, 216, 215, 200, 152, 151, 136};
byte listAll_OrDLs2[] = {106, 92, 78, 64, 50, 36, 22, 8, 24, 40, 56, 72, 88, 104, 120, 134, 148, 162, 176, 190, 204, 218, 202, 186, 170, 154, 138, 122, 76, 62, 20, 6, 10, 26, 74, 90, 150, 164, 206, 220, 216, 200, 152, 136};
byte listAll_OrDLs3[] = {106, 92, 78, 64, 50, 36, 22, 8, 24, 40, 56, 72, 88, 104, 120, 134, 148, 162, 176, 190, 204, 218, 202, 186, 170, 154, 138, 122, 20, 6};
byte listAll_YeDiamond1[] = {107, 93, 79, 65, 51, 37, 23, 39, 55, 71, 87, 103, 119, 133, 147, 161, 175, 189, 203, 187, 171, 155, 139, 123};
byte listAll_YeDiamond2[] = {93, 79, 65, 51, 37, 39, 55, 71, 87, 103, 133, 147, 161, 175, 189, 187, 171, 155, 139, 123};
byte listAll_YeDiamond3[] = {79, 65, 51, 55, 71, 87, 147, 161, 175, 171, 155, 139};
byte listAll_YeXs1[] = {81, 97, 113, 129, 145, 141, 127, 99, 85};
byte listAll_YeXs2[] = {97, 113, 129, 127, 99};
byte listAll_YeXs3[] = {113};
byte listPi_Dots[] = {110, 158, 116, 68};
byte listPu_OutlineU[] = {109, 125, 111, 95};
byte listPu_OutlineR[] = {157, 173, 159, 143};
byte listPu_OutlineD[] = {115, 131, 117, 101};
byte listPu_OutlineL[] = {67, 83, 69, 53};
byte listPu_CornerUR[] = {181, 182, 183, 198, 213};
byte listPu_CornerLR[] = {195, 194, 193, 208, 223};
byte listPu_CornerLL[] = {45, 44, 43, 28, 13};
byte listPu_CornerUL[] = {31, 32, 33, 18, 3};
byte listO_Diamond[] = {106, 92, 78, 64, 50, 36, 22, 8, 24, 40, 56, 72, 88, 104, 120, 134, 148, 162, 176, 190, 204, 218, 202, 186, 170, 154, 138, 122};
byte listO_Corners[] = {211, 225, 15, 1};
byte listO_L[] = {76, 61, 62, 20, 5, 6, 10, 11, 26, 74, 75, 90, 150, 165, 164, 206, 221, 220, 216, 215, 200, 152, 151, 136};
byte listB_Diamond[] = {91, 77, 63, 35, 21, 7, 9, 25, 41, 73, 89, 105, 135, 149, 163, 191, 205, 219, 217, 201, 185, 153, 137, 121};
byte listB_UR[] = {196, 197, 212};
byte listB_LR[] = {210, 209, 224};
byte listB_LL[] = {30, 29, 14};
byte listB_UL[] = {16, 17, 2};
byte listB_DiamondCorner[] = {16, 196, 210, 30, 91, 77, 63, 35, 21, 7, 9, 25, 41, 73, 89, 105, 135, 149, 163, 191, 205, 219, 217, 201, 185, 153, 137, 121};
byte listY_Diamond[] = {107, 93, 79, 65, 51, 37, 23, 39, 55, 71, 87, 103, 119, 133, 147, 161, 175, 189, 203, 187, 171, 155, 139, 123};
byte listY_DiamondX[] = {107, 93, 79, 65, 51, 37, 23, 39, 55, 71, 87, 103, 119, 133, 147, 161, 175, 189, 203, 187, 171, 155, 139, 123, 81, 97, 113, 129, 145, 141, 127, 99, 85};
byte listG_DiamondU[] = {108, 94, 90, 96, 112, 126, 140, 124};
byte listG_DiamondL[] = {66, 52, 38, 54, 70, 84, 98, 82};
byte listG_DiamondD[] = {114, 100, 86, 102, 118, 132, 146, 130};
byte listG_DiamondR[] = {156, 142, 128, 144, 160, 174, 188, 172};
byte listG_CornerUR[] = {166, 167, 168, 169, 184, 199, 214};
byte listG_CornerLR[] = {180, 179, 178, 177, 192, 207, 222};
byte listG_CornerLL[] = {60, 59, 58, 57, 42, 27, 12};
byte listG_CornerUL[] = {46, 47, 48, 49, 34, 19, 4};
byte listG_DiamondXCorner[] = {172, 80, 46, 47, 48, 4, 19, 58, 59, 60, 178, 179, 180, 166, 167, 168, 199, 214, 222, 207, 12, 27, 108, 94, 90, 96, 112, 126, 140, 124, 66, 52, 38, 54, 70, 84, 98, 82, 114, 100, 86, 102, 118, 132, 146, 130, 156, 142, 128, 144, 160, 174, 188};
void setup() {
}
void loop() {
//Call your user-defined functions here
orDls1On();
yeDia1On();
yeXs1On();
puCorners1On();
blCorners1On();
grCorners1On();
piDotsOn();
delay(500);
piDotsOff();
blCorners1Off();
puCorners1Off();
grCorners1Off();
blCorners2On();
puCorners2On();
grCorners2On();
delay(500);
piDotsOn();
blCorners2Off();
puCorners2Off();
grCorners2Off();
blCorners3On();
puCorners3On();
grCorners3On();
delay(500);
piDotsOff();
grCorners3Off();
orCornersOn();
grCorners4On();
delay(500);
orCornersOff();
blCorners3Off();
puCorners3Off();
blCorners4On();
puCorners4On();
delay(500);
puCorners4Off();
grCorners4Off();
orCornersOn();
puCorners5On();
grCorners5On();
delay(500);
orCornersOff();
grCorners5Off();
grCorners6On();
delay(500);
orDls1Off();
yeDia1Off();
orDls2On();
yeDia2On();
delay(500);
orDls2Off();
yeDia2Off();
orDls3On();
yeDia3On();
delay(500);
orDls3Off();
orDls2On();
delay(500);
}
void piDotsOn(){
for(int i=0; i<=3; i++){
write(listPi_Dots[i], HIGH);
}
}
void piDotsOff(){
for(int i=0; i<=3; i++){
write(listPi_Dots[i], LOW);
}
}
void orDls1On(){
for(int i=0; i<=51; i++){
write(listAll_OrDLs1[i], HIGH);
}
}
void orDls1Off(){
for(int i=0; i<=51; i++){
write(listAll_OrDLs1[i], LOW);
}
}
void orDls2On(){
for(int i=0; i<=43; i++){
write(listAll_OrDLs2[i], HIGH);
}
}
void orDls2Off(){
for(int i=0; i<=43; i++){
write(listAll_OrDLs2[i], LOW);
}
}
void orDls3On(){
for(int i=0; i<=36; i++){
write(listAll_OrDLs3[i], HIGH);
}
}
void orDls3Off(){
for(int i=0; i<=36; i++){
write(listAll_OrDLs3[i], LOW);
}
}
void yeDia1On(){
for(int i=0; i<=23; i++){
write(listAll_YeDiamond1[i], HIGH);
}
}
void yeDia1Off(){
for(int i=0; i<=23; i++){
write(listAll_YeDiamond1[i], LOW);
}
}
void yeDia2On(){
for(int i=0; i<=19; i++){
write(listAll_YeDiamond2[i], HIGH);
}
}
void yeDia2Off(){
for(int i=0; i<=19; i++){
write(listAll_YeDiamond2[i], LOW);
}
}
void yeDia3On(){
for(int i=0; i<=15; i++){
write(listAll_YeDiamond3[i], HIGH);
}
}
void yeDia3Off(){
for(int i=0; i<=15; i++){
write(listAll_YeDiamond3[i], LOW);
}
}
void yeXs1On(){
for(int i=0; i<=8; i++){
write(listAll_YeXs1[i], HIGH);
}
}
void yeXs1Off(){
for(int i=0; i<=8; i++){
write(listAll_YeXs1[i], LOW);
}
}
void yeXs2On(){
for(int i=0; i<=4; i++){
write(listAll_YeXs2[i], HIGH);
}
}
void yeXs2Off(){
for(int i=0; i<=4; i++){
write(listAll_YeXs2[i], LOW);
}
}
void yeXs3On(){
for(int i=0; i<=0; i++){
write(listAll_YeXs3[i], HIGH);
}
}
void yeXs3Off(){
for(int i=0; i<=0; i++){
write(listAll_YeXs3[i], LOW);
}
}
void puCorners1On(){
for(int i=0; i<=11; i++){
write(listAll_PuCorners1[i], HIGH);
}
}
void puCorners1Off(){
for(int i=0; i<=11; i++){
write(listAll_PuCorners1[i], LOW);
}
}
void puCorners2On(){
for(int i=0; i<=11; i++){
write(listAll_PuCorners2[i], HIGH);
}
}
void puCorners2Off(){
for(int i=0; i<=11; i++){
write(listAll_PuCorners2[i], LOW);
}
}
void puCorners3On(){
for(int i=0; i<=11; i++){
write(listAll_PuCorners3[i], HIGH);
}
}
void puCorners3Off(){
for(int i=0; i<=11; i++){
write(listAll_PuCorners3[i], LOW);
}
}
void puCorners4On(){
for(int i=0; i<=15; i++){
write(listAll_PuCorners4[i], HIGH);
}
}
void puCorners4Off(){
for(int i=0; i<=15; i++){
write(listAll_PuCorners4[i], LOW);
}
}
void puCorners5On(){
for(int i=0; i<=19; i++){
write(listAll_PuCorners5[i], HIGH);
}
}
void puCorners5Off(){
for(int i=0; i<=19; i++){
write(listAll_PuCorners5[i], LOW);
}
}
void blCorners1On(){
for(int i=0; i<=3; i++){
write(listAll_BlCorners1[i], HIGH);
}
}
void blCorners1Off(){
for(int i=0; i<=3; i++){
write(listAll_BlCorners1[i], LOW);
}
}
void blCorners2On(){
for(int i=0; i<=3; i++){
write(listAll_BlCorners2[i], HIGH);
}
}
void blCorners2Off(){
for(int i=0; i<=3; i++){
write(listAll_BlCorners2[i], LOW);
}
}
void blCorners3On(){
for(int i=0; i<=7; i++){
write(listAll_BlCorners3[i], HIGH);
}
}
void blCorners3Off(){
for(int i=0; i<=7; i++){
write(listAll_BlCorners3[i], LOW);
}
}
void blCorners4On(){
for(int i=0; i<=11; i++){
write(listAll_BlCorners[i], HIGH);
}
}
void blCorners4Off(){
for(int i=0; i<=11; i++){
write(listAll_BlCorners[i], LOW);
}
}
void orCornersOn(){
for(int i=0; i<=3; i++){
write(listO_Corners[i], HIGH);
}
}
void orCornersOff(){
for(int i=0; i<=3; i++){
write(listO_Corners[i], LOW);
}
}
void grCorners1On(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners1[i], HIGH);
}
}
void grCorners1Off(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners1[i], LOW);
}
}
void grCorners2On(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners2[i], HIGH);
}
}
void grCorners2Off(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners2[i], LOW);
}
}
void grCorners3On(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners3[i], HIGH);
}
}
void grCorners3Off(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners3[i], LOW);
}
}
void grCorners4On(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners4[i], HIGH);
}
}
void grCorners4Off(){
for(int i=0; i<=19; i++){
write(listAll_GrCorners4[i], LOW);
}
}
void grCorners5On(){
for(int i=0; i<=23; i++){
write(listAll_GrCorners5[i], HIGH);
}
}
void grCorners5Off(){
for(int i=0; i<=23; i++){
write(listAll_GrCorners5[i], LOW);
}
}
void grCorners6On(){
for(int i=0; i<=27; i++){
write(listAll_GrCorners6[i], HIGH);
}
}
void grCorners6Off(){
for(int i=0; i<=27; i++){
write(listAll_GrCorners6[i], LOW);
}
}