Introduction: LED Halloween Face

Halloween is just around the corner, why not make a fun led face to spook your visitors! This is a simple project that looks really cool at night. So lets get started!

Step 1: Gather Your Parts

1) 7 Segment, 8 Digit, SPI Display (http://www.gearbest.com/development-boards/pp_1437...)

2) 3x Arduino UNO (http://www.gearbest.com/boards-shields/pp_278170.h...)

3) Male to Male Wires (http://www.gearbest.com/other-accessories/pp_27815...)

4) Male to Female Wires (http://www.gearbest.com/diy-parts-components/pp_23...)

5) 2x 8x8 dot matrix (http://www.ebay.com/itm/like/221769629857?lpid=82&...)

6) Cardboard

7) Hot Glue

8) 9v Power Supply (optional but suggested)

Step 2: Connect Everything

There are a lot of wires in this project so make sure everything is correct.

View the first image, this will explain how to wire everything. I didn't include the SPI 7-segment display but all you need to do is this: [Pin 12 to Data In, 11 to Clk, and 10 to LOAD, VCC to 5v, and GND to GND].

On the dot matrix use male to female pins and hot glue them into place, then wire tie all the wires together to insure a good connection.

Step 3: Cut the Cardboard

Trace the displays and cut them out, simple.

Step 4: Glue the Displays Into Place

This is simple as well just put the display in the hole and hot glue around it. Also on the back side glue your Arduino's to the board.

Step 5: Program the Arduino's

Here's how it works, the main controller controls the mouth as well as the two eye's Arduino's. Each eye has its own Arduino to control the 8x8 dot matrix and everything is controlled by an 9600 buad serial connection.

You either can download the code or copy it from below.

The left eyes code is:

//code made by funguypro

int eye = 0;
// 2-dimensional array of row pin numbers: const int row[8] = { 2, 7, 19, 5, 13, 18, 12, 16 };

// 2-dimensional array of column pin numbers: const int col[8] = { 6, 11, 10, 3, 17, 4, 8, 9 };

// 2-dimensional array of pixels: int pixels[8][8];

// cursor position: int x = 5; int y = 5;

void setup() { Serial.begin(9600); // initialize the I/O pins as outputs // iterate over the pins: for (int thisPin = 0; thisPin < 8; thisPin++) { // initialize the output pins: pinMode(col[thisPin], OUTPUT); pinMode(row[thisPin], OUTPUT); // take the col pins (i.e. the cathodes) high to ensure that // the LEDS are off: digitalWrite(col[thisPin], HIGH); }

// initialize the pixel matrix: for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } }

void loop() { if(Serial.available() > 0){ char c = Serial.read(); Serial.write(c); if(c == 'a'){ eye = 1; } if(c == 'b'){ eye = 2; } if(c == 'c'){ eye = 3; } if(c == 'd'){ eye = 4; } if(c == 'e'){ eye = 5; } if(c == 'f'){ eye = 6; } if(c == 'g'){ eye = 7; } if(c == 'h'){ eye = 8; } if(c == 'i'){ eye = 9; } if(c == 'j'){ eye = 10; } if(c == 'k'){ eye = 11; } if(c == 'l'){ eye = 12; } if(c == 'm'){ eye = 13; } if(c == 'n'){ eye = 14; } if(c == 'o'){ eye = 15; } if(c == 'p'){ eye = 16; } if(c == 'q'){ eye = 17; } if(c == 'r'){ eye = 18; } if(c == 's'){ eye = 19; } if(c == 't'){ eye = 20; } if(c == 'z'){ eye = 25; } } if(eye == 1){ eye1_a(); } if(eye == 2){ eye1_b(); } if(eye == 3){ eye1_c(); } if(eye == 4){ eye1_d(); } if(eye == 5){ eye1_e(); } if(eye == 6){ eye1_f(); } if(eye == 7){ eye2_a(); } if(eye == 8){ eye3_a(); } if(eye == 9){ eye3_b(); } if(eye == 10){ eye4_a(); } if(eye == 11){ eye4_b(); } if(eye == 12){ eye4_c(); } if(eye == 13){ eye4_d(); } if(eye == 14){ eye4_e(); } if(eye == 15){ eye4_f(); } if(eye == 16){ eye4_g(); } if(eye == 17){ eye4_h(); } if(eye == 18){ eye4_i(); } if(eye == 19){ eye4_j(); } if(eye == 20){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } } if(eye == 25){ blink1_a(); } refreshScreen(); }

void eye1_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_b(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_c(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW; //1 pixels[2][0] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW; //2 pixels[3][0] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_d(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; //pixels[5][1] = LOW; //pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_e(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; //pixels[5][3] = LOW; //pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_f(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; //pixels[5][5] = LOW; //pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; }

void eye2_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW;

pixels[1][3] = LOW; pixels[1][7] = LOW; pixels[2][2] = LOW; pixels[2][7] = LOW;

pixels[3][1] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; }

void eye3_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW;

pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW;

pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW;

pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; } void eye3_b(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW;

pixels[3][1] = LOW; pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW;

pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW;

pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; }

void eye4_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; //pixels[2][7] = LOW;

pixels[3][1] = LOW; pixels[3][6] = LOW;

pixels[4][1] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][6] = LOW;

pixels[5][1] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][6] = LOW;

pixels[6][1] = LOW; pixels[6][6] = LOW;

pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; } void eye4_b(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; //pixels[1][5] = LOW; // pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_c(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; pixels[1][1] = LOW; pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_d(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_e(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_f(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; // pixels[3][1] = LOW; //pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_g(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_h(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; pixels[6][1] = LOW; pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_i(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; //pixels[5][1] = LOW; //pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; //pixels[6][1] = LOW; //pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_j(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; //pixels[5][1] = LOW; //pixels[5][2] = LOW; //pixels[5][3] = LOW; //pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; //pixels[6][1] = LOW; //pixels[6][2] = LOW; // pixels[6][3] = LOW; //pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; }

void blink1_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW; }

void refreshScreen() { // iterate over the rows (anodes): for (int thisRow = 0; thisRow < 8; thisRow++) { // take the row pin (anode) high: digitalWrite(row[thisRow], HIGH); // iterate over the cols (cathodes): for (int thisCol = 0; thisCol < 8; thisCol++) { // get the state of the current pixel; int thisPixel = pixels[thisRow][thisCol]; // when the row is HIGH and the col is LOW, // the LED where they meet turns on: digitalWrite(col[thisCol], thisPixel); // turn the pixel off: if (thisPixel == LOW) { digitalWrite(col[thisCol], HIGH); } } // take the row pin low to turn off the whole row: digitalWrite(row[thisRow], LOW); } }

The right eyes code is:

//code made by funguypro

int eye = 0;
// 2-dimensional array of row pin numbers: const int row[8] = { 2, 7, 19, 5, 13, 18, 12, 16 };

// 2-dimensional array of column pin numbers: const int col[8] = { 6, 11, 10, 3, 17, 4, 8, 9 };

// 2-dimensional array of pixels: int pixels[8][8];

// cursor position: int x = 5; int y = 5;

void setup() { Serial.begin(9600); // initialize the I/O pins as outputs // iterate over the pins: for (int thisPin = 0; thisPin < 8; thisPin++) { // initialize the output pins: pinMode(col[thisPin], OUTPUT); pinMode(row[thisPin], OUTPUT); // take the col pins (i.e. the cathodes) high to ensure that // the LEDS are off: digitalWrite(col[thisPin], HIGH); }

// initialize the pixel matrix: for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } }

void loop() { if(Serial.available() > 0){ char c = Serial.read(); Serial.write(c); if(c == 'a'){ eye = 1; } if(c == 'b'){ eye = 2; } if(c == 'c'){ eye = 3; } if(c == 'd'){ eye = 4; } if(c == 'e'){ eye = 5; } if(c == 'f'){ eye = 6; } if(c == 'g'){ eye = 7; } if(c == 'h'){ eye = 8; } if(c == 'i'){ eye = 9; } if(c == 'j'){ eye = 10; } if(c == 'k'){ eye = 11; } if(c == 'l'){ eye = 12; } if(c == 'm'){ eye = 13; } if(c == 'n'){ eye = 14; } if(c == 'o'){ eye = 15; } if(c == 'p'){ eye = 16; } if(c == 'q'){ eye = 17; } if(c == 'r'){ eye = 18; } if(c == 's'){ eye = 19; } if(c == 't'){ eye = 20; } if(c == 'z'){ eye = 25; } } if(eye == 1){ eye1_a(); } if(eye == 2){ eye1_b(); } if(eye == 3){ eye1_c(); } if(eye == 4){ eye1_d(); } if(eye == 5){ eye1_e(); } if(eye == 6){ eye1_f(); } if(eye == 7){ eye2_a(); } if(eye == 8){ eye3_a(); } if(eye == 9){ eye3_b(); } if(eye == 10){ eye4_a(); } if(eye == 11){ eye4_b(); } if(eye == 12){ eye4_c(); } if(eye == 13){ eye4_d(); } if(eye == 14){ eye4_e(); } if(eye == 15){ eye4_f(); } if(eye == 16){ eye4_g(); } if(eye == 17){ eye4_h(); } if(eye == 18){ eye4_i(); } if(eye == 19){ eye4_j(); } if(eye == 25){ blink1_a(); } refreshScreen(); }

void eye1_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_b(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_c(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW; //1 pixels[2][0] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW; //2 pixels[3][0] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_d(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; //pixels[5][1] = LOW; //pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_e(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; //pixels[5][3] = LOW; //pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; } void eye1_f(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW;

pixels[1][1] = LOW; pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW; pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; //pixels[5][5] = LOW; //pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; }

void eye2_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW;

pixels[1][0] = LOW; pixels[1][4] = LOW;

pixels[2][0] = LOW; pixels[2][5] = LOW;

pixels[3][0] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][6] = LOW;

pixels[4][0] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][7] = LOW;

pixels[6][1] = LOW; pixels[6][6] = LOW;

pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; }

void eye3_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW;

pixels[3][1] = LOW; pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW;

pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW;

pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; } void eye3_b(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW;

pixels[3][1] = LOW; pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW;

pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][1] = LOW; pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW;

pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; pixels[6][5] = LOW; }

void eye4_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[2][1] = LOW; pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; //pixels[2][7] = LOW;

pixels[3][1] = LOW; pixels[3][6] = LOW;

pixels[4][1] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][6] = LOW;

pixels[5][1] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; pixels[5][6] = LOW;

pixels[6][1] = LOW; pixels[6][6] = LOW;

pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; } void eye4_b(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; pixels[1][3] = LOW; pixels[1][4] = LOW; //pixels[1][5] = LOW; // pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; pixels[2][3] = LOW; pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_c(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; pixels[1][1] = LOW; pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; pixels[2][1] = LOW; pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_d(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; pixels[1][5] = LOW; pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; pixels[2][5] = LOW; pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_e(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; pixels[3][1] = LOW; pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_f(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; // pixels[3][1] = LOW; //pixels[3][2] = LOW; pixels[3][3] = LOW; pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_g(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; pixels[3][5] = LOW; pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; // pixels[5][1] = LOW; // pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; // pixels[6][1] = LOW; // pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_h(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; pixels[5][1] = LOW; pixels[5][2] = LOW; // pixels[5][3] = LOW; // pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; pixels[6][1] = LOW; pixels[6][2] = LOW; // pixels[6][3] = LOW; // pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_i(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; //pixels[5][1] = LOW; //pixels[5][2] = LOW; pixels[5][3] = LOW; pixels[5][4] = LOW; // pixels[5][5] = LOW; // pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; //pixels[6][1] = LOW; //pixels[6][2] = LOW; pixels[6][3] = LOW; pixels[6][4] = LOW; // pixels[6][5] = LOW; // pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; } void eye4_j(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[0][0] = LOW; pixels[0][1] = LOW; pixels[0][2] = LOW; pixels[0][3] = LOW; pixels[0][4] = LOW; pixels[0][5] = LOW; pixels[0][6] = LOW; pixels[0][7] = LOW;

pixels[1][0] = LOW; //pixels[1][1] = LOW; //pixels[1][2] = LOW; //pixels[1][3] = LOW; //pixels[1][4] = LOW; //pixels[1][5] = LOW; //pixels[1][6] = LOW; pixels[1][7] = LOW;

pixels[2][0] = LOW; //pixels[2][1] = LOW; //pixels[2][2] = LOW; //pixels[2][3] = LOW; //pixels[2][4] = LOW; //pixels[2][5] = LOW; //pixels[2][6] = LOW; pixels[2][7] = LOW;

pixels[3][0] = LOW; //pixels[3][1] = LOW; //pixels[3][2] = LOW; //pixels[3][3] = LOW; //pixels[3][4] = LOW; //pixels[3][5] = LOW; //pixels[3][6] = LOW; pixels[3][7] = LOW;

pixels[4][0] = LOW; //pixels[4][1] = LOW; //pixels[4][2] = LOW; //pixels[4][3] = LOW; //pixels[4][4] = LOW; //pixels[4][5] = LOW; //pixels[4][6] = LOW; pixels[4][7] = LOW;

pixels[5][0] = LOW; //pixels[5][1] = LOW; //pixels[5][2] = LOW; //pixels[5][3] = LOW; //pixels[5][4] = LOW; pixels[5][5] = LOW; pixels[5][6] = LOW; pixels[5][7] = LOW;

pixels[6][0] = LOW; //pixels[6][1] = LOW; //pixels[6][2] = LOW; // pixels[6][3] = LOW; //pixels[6][4] = LOW; pixels[6][5] = LOW; pixels[6][6] = LOW; pixels[6][7] = LOW;

pixels[7][0] = LOW; pixels[7][1] = LOW; pixels[7][2] = LOW; pixels[7][3] = LOW; pixels[7][4] = LOW; pixels[7][5] = LOW; pixels[7][6] = LOW; pixels[7][7] = LOW; }

void blink1_a(){ for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pixels[x][y] = HIGH; } } pixels[4][0] = LOW; pixels[4][1] = LOW; pixels[4][2] = LOW; pixels[4][3] = LOW; pixels[4][4] = LOW; pixels[4][5] = LOW; pixels[4][6] = LOW; pixels[4][7] = LOW; }

void refreshScreen() { // iterate over the rows (anodes): for (int thisRow = 0; thisRow < 8; thisRow++) { // take the row pin (anode) high: digitalWrite(row[thisRow], HIGH); // iterate over the cols (cathodes): for (int thisCol = 0; thisCol < 8; thisCol++) { // get the state of the current pixel; int thisPixel = pixels[thisRow][thisCol]; // when the row is HIGH and the col is LOW, // the LED where they meet turns on: digitalWrite(col[thisCol], thisPixel); // turn the pixel off: if (thisPixel == LOW) { digitalWrite(col[thisCol], HIGH); } } // take the row pin low to turn off the whole row: digitalWrite(row[thisRow], LOW); } }


The main/mouth controller is:

//code made by funguypro

#include "LedControl.h"

LedControl lc=LedControl(12,11,10,1);

void setup() { Serial.begin(9600);

lc.shutdown(0,false); /* Set the brightness to a medium values */ lc.setIntensity(0,14); /* and clear the display */ lc.clearDisplay(0); Serial.write('t'); }

void loop() { Serial.write('g'); for(int i = 0; i<15; i++){ talk(100); } Serial.write('z'); delay(100); fangs(); for(int i=0; i<6; i++){ Serial.write('f'); delay(500); Serial.write('e'); delay(500); Serial.write('d'); delay(500); Serial.write('e'); delay(500); Serial.write('z'); delay(100); } for(int i=0; i<5; i++){ Serial.write('l');//l wistle(); Serial.write('k');//k wistle(); Serial.write('p');//m wistle(); Serial.write('s');//n wistle(); Serial.write('r');//o wistle(); Serial.write('z'); delay(100); Serial.write('q');//p wistle(); Serial.write('n');//q wistle(); } }

void mouth_close(){ lc.setLed(0, 0, 1, true); lc.setLed(0, 0, 2, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 0, 4, true);

lc.setLed(0, 1, 1, true); lc.setLed(0, 1, 4, true);

lc.setLed(0, 2, 1, true); lc.setLed(0, 2, 4, true); lc.setLed(0, 3, 1, true); lc.setLed(0, 3, 4, true);

lc.setLed(0, 4, 1, true); lc.setLed(0, 4, 4, true);

lc.setLed(0, 5, 1, true); lc.setLed(0, 5, 4, true);

lc.setLed(0, 6, 1, true); lc.setLed(0, 6, 4, true);

lc.setLed(0, 7, 1, true); lc.setLed(0, 7, 6, true); lc.setLed(0, 7, 5, true); lc.setLed(0, 7, 4, true); delay(250); lc.clearDisplay(0); lc.setLed(0, 0, 7, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 0, 4, true);

lc.setLed(0, 1, 7, true); lc.setLed(0, 1, 4, true);

lc.setLed(0, 2, 7, true); lc.setLed(0, 2, 4, true);

lc.setLed(0, 3, 7, true); lc.setLed(0, 3, 4, true);

lc.setLed(0, 4, 7, true); lc.setLed(0, 4, 4, true);

lc.setLed(0, 5, 7, true); lc.setLed(0, 5, 4, true);

lc.setLed(0, 6, 7, true); lc.setLed(0, 6, 4, true);

lc.setLed(0, 7, 7, true); lc.setLed(0, 7, 4, true); lc.setLed(0, 7, 5, true); delay(250); lc.clearDisplay(0); lc.setLed(0, 0, 4, true); lc.setLed(0, 1, 4, true); lc.setLed(0, 2, 4, true); lc.setLed(0, 3, 4, true); lc.setLed(0, 4, 4, true); lc.setLed(0, 5, 4, true); lc.setLed(0, 6, 4, true); lc.setLed(0, 7, 4, true); delay(250); lc.clearDisplay(0); }

void talk(int speed){ lc.clearDisplay(0); lc.setLed(0, 0, 1, true); lc.setLed(0, 0, 2, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 0, 4, true);

lc.setLed(0, 1, 1, true); lc.setLed(0, 1, 4, true);

lc.setLed(0, 2, 1, true); lc.setLed(0, 2, 4, true); lc.setLed(0, 3, 1, true); lc.setLed(0, 3, 4, true);

lc.setLed(0, 4, 1, true); lc.setLed(0, 4, 4, true);

lc.setLed(0, 5, 1, true); lc.setLed(0, 5, 4, true);

lc.setLed(0, 6, 1, true); lc.setLed(0, 6, 4, true);

lc.setLed(0, 7, 1, true); lc.setLed(0, 7, 6, true); lc.setLed(0, 7, 5, true); lc.setLed(0, 7, 4, true); delay(speed); lc.clearDisplay(0); lc.setLed(0, 0, 7, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 0, 4, true);

lc.setLed(0, 1, 7, true); lc.setLed(0, 1, 4, true);

lc.setLed(0, 2, 7, true); lc.setLed(0, 2, 4, true);

lc.setLed(0, 3, 7, true); lc.setLed(0, 3, 4, true);

lc.setLed(0, 4, 7, true); lc.setLed(0, 4, 4, true);

lc.setLed(0, 5, 7, true); lc.setLed(0, 5, 4, true);

lc.setLed(0, 6, 7, true); lc.setLed(0, 6, 4, true);

lc.setLed(0, 7, 7, true); lc.setLed(0, 7, 4, true); lc.setLed(0, 7, 5, true); delay(speed); lc.clearDisplay(0); lc.setLed(0, 0, 4, true); lc.setLed(0, 1, 4, true); lc.setLed(0, 2, 4, true); lc.setLed(0, 3, 4, true); lc.setLed(0, 4, 4, true); lc.setLed(0, 5, 4, true); lc.setLed(0, 6, 4, true); lc.setLed(0, 7, 4, true); delay(speed); lc.clearDisplay(0); lc.setLed(0, 0, 7, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 0, 4, true);

lc.setLed(0, 1, 7, true); lc.setLed(0, 1, 4, true);

lc.setLed(0, 2, 7, true); lc.setLed(0, 2, 4, true);

lc.setLed(0, 3, 7, true); lc.setLed(0, 3, 4, true);

lc.setLed(0, 4, 7, true); lc.setLed(0, 4, 4, true);

lc.setLed(0, 5, 7, true); lc.setLed(0, 5, 4, true);

lc.setLed(0, 6, 7, true); lc.setLed(0, 6, 4, true);

lc.setLed(0, 7, 7, true); lc.setLed(0, 7, 4, true); lc.setLed(0, 7, 5, true); delay(speed); lc.clearDisplay(0); lc.setLed(0, 0, 1, true); lc.setLed(0, 0, 2, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 0, 4, true);

lc.setLed(0, 1, 1, true); lc.setLed(0, 1, 4, true);

lc.setLed(0, 2, 1, true); lc.setLed(0, 2, 4, true); lc.setLed(0, 3, 1, true); lc.setLed(0, 3, 4, true);

lc.setLed(0, 4, 1, true); lc.setLed(0, 4, 4, true);

lc.setLed(0, 5, 1, true); lc.setLed(0, 5, 4, true);

lc.setLed(0, 6, 1, true); lc.setLed(0, 6, 4, true);

lc.setLed(0, 7, 1, true); lc.setLed(0, 7, 6, true); lc.setLed(0, 7, 5, true); lc.setLed(0, 7, 4, true); delay(speed); }

void fangs(){ lc.clearDisplay(0); lc.setLed(0, 0, 1, true); lc.setLed(0, 0, 2, true); lc.setLed(0, 0, 3, true); lc.setLed(0, 1, 1, true); lc.setLed(0, 2, 1, true); lc.setLed(0, 3, 1, true); lc.setLed(0, 4, 1, true); lc.setLed(0, 5, 1, true); lc.setLed(0, 6, 1, true); lc.setLed(0, 7, 1, true); lc.setLed(0, 7, 6, true); lc.setLed(0, 7, 5, true); }

void wistle(){ lc.clearDisplay(0); lc.setLed(0, 3, 1, true); lc.setLed(0, 3, 2, true); lc.setLed(0, 3, 3, true); lc.setLed(0, 3, 4, true); lc.setLed(0, 4, 1, true); lc.setLed(0, 4, 6, true); lc.setLed(0, 4, 5, true); lc.setLed(0, 4, 4, true); delay(250); lc.clearDisplay(0); lc.setLed(0, 4, 1, true); lc.setLed(0, 4, 2, true); lc.setLed(0, 4, 7, true); lc.setLed(0, 4, 6, true); delay(250); }

Step 6: Done!

Plug it in and watch it go!


Step 7: Did You Like This Project?

I work really hard on my projects to make sure everyone can clearly understand them. If you have any questions please leave them in the comments and i will try to answer them. Also it would be great if you vote for me in the circuits contest. Thanks everyone!!

Comments

author
ExtremeSam (author)2016-10-17

very cool, you could try adding an ultrasonic sensor and a buzzer so if a trick or treater walks by then the face will scream. Great project, I voted

author
Funguypro (author)ExtremeSam2016-10-18

Thanks, the ultrasonic sensor is a good idea as well

About This Instructable

924views

7favorites

License:

Bio: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths ... More »
More by Funguypro:3D Print Your House!!!!!DIY Raspberry Pi Indoor Outdoor WebcamSee Through Buildings With a Drone
Add instructable to: