Hackster is hosting Hackster Holidays, Ep. 5: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 5 on Friday!
Austin Detzel
Published © CC BY-NC-SA

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.

IntermediateFull instructions provided3 hours936

Story

Read more

Code

Code snippet #1

Plain text
//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;
...

This file has been truncated, please download it to see its full contents.

Code snippet #2

Plain text
//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;
...

This file has been truncated, please download it to see its full contents.

Code snippet #3

Plain text
//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);
  
}

Credits

Austin Detzel

Austin Detzel

26 projects • 38 followers

Comments