Dependencies: mbed wave_player SDFileSystem TextLCD
main.cpp
- Committer:
- chessdsbr
- Date:
- 2020-05-20
- Revision:
- 2:32e1e71f5885
- Parent:
- 0:bdbd3d6fc5d5
File content as of revision 2:32e1e71f5885:
#include "mbed.h" #include "SDFileSystem.h" #include <wave_player.h> #include "TextLCD.h" Ticker columna; Ticker imagen; AnalogOut DAcout (PTE30); SDFileSystem sd(D11, D12, D13, D10, "sd"); // the pinout on the mbed Cool Components workshop board wave_player waver(&DAcout); TextLCD lcd(PTE20,PTE21,PTB0,PTB1,PTB2,PTB3,TextLCD::LCD16x2);//Asignación de pines para rs, e, d4, d5. d6,d7 DigitalOut red(LED1,1); DigitalOut green(LED2,1); BusOut colum(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8); BusOut row(PTC7,PTC0,PTC3,PTC4,PTC5,PTC6,PTC10,PTC11); BusOut colum_2(PTD5,PTA13,PTD4,PTA12,PTA4,PTA5,PTC8,PTC9); BusOut row_2(PTC12,PTC13,PTC16,PTC17,PTA16,PTA17,PTD6,PTD7); Serial pc(USBTX,USBRX); int perder=0; int counter=0; int cambio_im=0; int im_escogida=0; int figura_dib[8]; char serial; const char cuadrado[8]={0xFF, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0xFF}; const char triangulo[8]={0xFF, 0x41, 0x21, 0x11, 0x9, 0x5, 0x3, 0x1}; const char rombo[8]={0x18, 0x24, 0x42, 0x42, 0x42, 0x42, 0x24, 0x18}; const char triste[8]={0x3C, 0x42, 0xA5, 0x81, 0x99, 0xA5, 0x42, 0x3C}; const char feliz[8]={0x3C, 0x42, 0xA5, 0x81, 0xA5, 0x99, 0x42, 0x3C}; int seg1=0; //Variable para contador de unidades de segundo int seg2=0; //Variable para contador de décimas de segundo int min1=0; //Variable para contador de unidades de minuto int l1=0; int l2=0; int l3=0; int l4=0; int l5=0; int l6=0; int l7=0; int l8=0; int l9=0; int l10=0; int l11=0; int l12=0; int l13=0; int l14=0; int l15=0; int l16=0; int l17=0; int l18=0; int l19=0; int l20=0; int l21=0; int l22=0; int l23=0; int l24=0; int l25=0; int l26=0; int l27=0; int l28=0; int l29=0; int l30=0; int l31=0; int l32=0; int l33=0; int l34=0; int l35=0; int l36=0; int l37=0; int l38=0; int l39=0; int l40=0; int l41=0; int l42=0; int l43=0; int l44=0; int l45=0; int l46=0; int l47=0; int l48=0; int l49=0; int l50=0; int l51=0; int l52=0; int l53=0; int l54=0; int l55=0; int l56=0; int l57=0; int l58=0; int l59=0; int l60=0; int l61=0; int l62=0; int l63=0; int l64=0; void receivedByte() { serial = pc.getc(); if(serial=='/') { red=!red; } if(serial=='*') { green=!green; } if(serial=='a') { l1=!l1; } if(serial=='b') { l2=!l2; } if(serial=='c') { l3=!l3; } if(serial=='d') { l4=!l4; } if(serial=='e') { l5=!l5; } if(serial=='f') { l6=!l6; } if(serial=='g') { l7=!l7; } if(serial=='h') { l8=!l8; } if(serial=='i') { l9=!l9; } if(serial=='j') { l10=!l10; } if(serial=='k') { l11=!l11; } if(serial=='l') { l12=!l12; } if(serial=='m') { l13=!l13; } if(serial=='n') { l14=!l14; } if(serial=='o') { l15=!l15; } if(serial=='p') { l16=!l16; } if(serial=='q') { l17=!l17; } if(serial=='r') { l18=!l18; } if(serial=='s') { l19=!l19; } if(serial=='t') { l20=!l20; } if(serial=='u') { l21=!l21; } if(serial=='v') { l22=!l22; } if(serial=='w') { l23=!l23; } if(serial=='x') { l24=!l24; } if(serial=='y') { l25=!l25; } if(serial=='z') { l26=!l26; } if(serial=='A') { l27=!l27; } if(serial=='B') { l28=!l28; } if(serial=='C') { l29=!l29; } if(serial=='D') { l30=!l30; } if(serial=='E') { l31=!l31; } if(serial=='F') { l32=!l32; } if(serial=='G') { l33=!l33; } if(serial=='H') { l34=!l34; } if(serial=='I') { l35=!l35; } if(serial=='J') { l36=!l36; } if(serial=='K') { l37=!l37; } if(serial=='L') { l38=!l38; } if(serial=='M') { l39=!l39; } if(serial=='N') { l40=!l40; } if(serial=='O') { l41=!l41; } if(serial=='P') { l42=!l42; } if(serial=='Q') { l43=!l43; } if(serial=='R') { l44=!l44; } if(serial=='S') { l45=!l45; } if(serial=='T') { l46=!l46; } if(serial=='U') { l47=!l47; } if(serial=='V') { l48=!l48; } if(serial=='W') { l49=!l49; } if(serial=='X') { l50=!l50; } if(serial=='Y') { l51=!l51; } if(serial=='Z') { l52=!l52; } if(serial=='0') { l53=!l53; } if(serial=='&') { l54=!l54; } if(serial=='2') { l55=!l55; } if(serial=='3') { l56=!l56; } if(serial=='4') { l57=!l57; } if(serial=='5') { l58=!l58; } if(serial=='6') { l59=!l59; } if(serial=='7') { l60=!l60; } if(serial=='8') { l61=!l61; } if(serial=='9') { l62=!l62; } if(serial=='+') { l63=!l63; } if(serial=='-') { l64=!l64; } /////////// if(serial=='!') { cambio_im=1; im_escogida=0; l1=0; l2=0; l3=0; l4=0; l5=0; l6=0; l7=0; l8=0; l9=0; l10=0; l11=0; l12=0; l13=0; l14=0; l15=0; l16=0; l17=0; l18=0; l19=0; l20=0; l21=0; l22=0; l23=0; l24=0; l25=0; l26=0; l27=0; l28=0; l29=0; l30=0; l31=0; l32=0; l33=0; l34=0; l35=0; l36=0; l37=0; l38=0; l39=0; l40=0; l41=0; l42=0; l43=0; l44=0; l45=0; l46=0; l47=0; l48=0; l49=0; l50=0; l51=0; l52=0; l53=0; l54=0; l55=0; l56=0; l57=0; l58=0; l59=0; l60=0; l61=0; l62=0; l63=0; l64=0; } if(serial=='.') { cambio_im=0; im_escogida=1; } if(serial=='?') { cambio_im=0; im_escogida=2; } if(serial=='=') { cambio_im=0; im_escogida=3; } if(serial=='%') { l1=0; l2=0; l3=0; l4=0; l5=0; l6=0; l7=0; l8=0; l9=0; l10=0; l11=0; l12=0; l13=0; l14=0; l15=0; l16=0; l17=0; l18=0; l19=0; l20=0; l21=0; l22=0; l23=0; l24=0; l25=0; l26=0; l27=0; l28=0; l29=0; l30=0; l31=0; l32=0; l33=0; l34=0; l35=0; l36=0; l37=0; l38=0; l39=0; l40=0; l41=0; l42=0; l43=0; l44=0; l45=0; l46=0; l47=0; l48=0; l49=0; l50=0; l51=0; l52=0; l53=0; l54=0; l55=0; l56=0; l57=0; l58=0; l59=0; l60=0; l61=0; l62=0; l63=0; l64=0; } } void cambio(){ if(cambio_im>0){ cambio_im++; if(cambio_im==4){ cambio_im=1; } } } void reloj(){//Subrutina para generar reloj de 6 segmentos lcd.locate(9,1);//Posicionamiento de las unidades de segundo lcd.printf("%i", seg1); lcd.locate(8,1);//Posicionamiento de las décimas de segundo lcd.printf("%i",seg2); lcd.locate(7,1);//Posicionamiento del doble punto lcd.printf(":"); lcd.locate(6,1);//Posicionamiento de las unidades de minuto lcd.printf("%i",min1); lcd.locate(5,1);//Posicionamiento de las décimas de minuto } void visualiza(){ // /// //// ///// if(l1==1){ if(l2==1){ if(l3==1){ if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xFF; } else{ figura_dib[0]=0xFE; } } else if(l8==1){ figura_dib[0]=0xFD; } else{ figura_dib[0]=0xFC; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xFB; } else{ figura_dib[0]=0xFA; } } else if(l8==1){ figura_dib[0]=0xF9; } else{ figura_dib[0]=0xF8; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xF7; } else{ figura_dib[0]=0xF6; } } else if(l8==1){ figura_dib[0]=0xF5; } else{ figura_dib[0]=0xF4; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xF3; } else{ figura_dib[0]=0xF2; } } else if(l8==1){ figura_dib[0]=0xF1; } else{ figura_dib[0]=0xF0; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xEF; } else{ figura_dib[0]=0xEE; } } else if(l8==1){ figura_dib[0]=0xED; } else{ figura_dib[0]=0xEC; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xEB; } else{ figura_dib[0]=0xEA; } } else if(l8==1){ figura_dib[0]=0xE9; } else{ figura_dib[0]=0xE8; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xE7; } else{ figura_dib[0]=0xE6; } } else if(l8==1){ figura_dib[0]=0xE5; } else{ figura_dib[0]=0xE4; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xE3; } else{ figura_dib[0]=0xE2; } } else if(l8==1){ figura_dib[0]=0xE1; } else{ figura_dib[0]=0xE0; } } else if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xDF; } else{ figura_dib[0]=0xDE; } } else if(l8==1){ figura_dib[0]=0xDD; } else{ figura_dib[0]=0xDC; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xDB; } else{ figura_dib[0]=0xDA; } } else if(l8==1){ figura_dib[0]=0xD9; } else{ figura_dib[0]=0xD8; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xD7; } else{ figura_dib[0]=0xD6; } } else if(l8==1){ figura_dib[0]=0xD5; } else{ figura_dib[0]=0xD4; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xD3; } else{ figura_dib[0]=0xD2; } } else if(l8==1){ figura_dib[0]=0xD1; } else{ figura_dib[0]=0xD0; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xCF; } else{ figura_dib[0]=0xCE; } } else if(l8==1){ figura_dib[0]=0xCD; } else{ figura_dib[0]=0xCC; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xCB; } else{ figura_dib[0]=0xCA; } } else if(l8==1){ figura_dib[0]=0xC9; } else{ figura_dib[0]=0xC8; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xC7; } else{ figura_dib[0]=0xC6; } } else if(l8==1){ figura_dib[0]=0xC5; } else{ figura_dib[0]=0xC4; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xC3; } else{ figura_dib[0]=0xC2; } } else if(l8==1){ figura_dib[0]=0xC1; } else{ figura_dib[0]=0xC0; } } else if(l3==1){ if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xBF; } else{ figura_dib[0]=0xBE; } } else if(l8==1){ figura_dib[0]=0xBD; } else{ figura_dib[0]=0xBC; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xBB; } else{ figura_dib[0]=0xBA; } } else if(l8==1){ figura_dib[0]=0xB9; } else{ figura_dib[0]=0xB8; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xB7; } else{ figura_dib[0]=0xB6; } } else if(l8==1){ figura_dib[0]=0xB5; } else{ figura_dib[0]=0xB4; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xB3; } else{ figura_dib[0]=0xB2; } } else if(l8==1){ figura_dib[0]=0xB1; } else{ figura_dib[0]=0xB0; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xAF; } else{ figura_dib[0]=0xAE; } } else if(l8==1){ figura_dib[0]=0xAD; } else{ figura_dib[0]=0xAC; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xAB; } else{ figura_dib[0]=0xAA; } } else if(l8==1){ figura_dib[0]=0xA9; } else{ figura_dib[0]=0xA8; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0xA7; } else{ figura_dib[0]=0xA6; } } else if(l8==1){ figura_dib[0]=0xA5; } else{ figura_dib[0]=0xA4; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0xA3; } else{ figura_dib[0]=0xA2; } } else if(l8==1){ figura_dib[0]=0xA1; } else{ figura_dib[0]=0xA0; } } else if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x9F; } else{ figura_dib[0]=0x9E; } } else if(l8==1){ figura_dib[0]=0x9D; } else{ figura_dib[0]=0x9C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x9B; } else{ figura_dib[0]=0x9A; } } else if(l8==1){ figura_dib[0]=0x99; } else{ figura_dib[0]=0x98; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x97; } else{ figura_dib[0]=0x96; } } else if(l8==1){ figura_dib[0]=0x95; } else{ figura_dib[0]=0x94; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x93; } else{ figura_dib[0]=0x92; } } else if(l8==1){ figura_dib[0]=0x91; } else{ figura_dib[0]=0x90; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x8F; } else{ figura_dib[0]=0x8E; } } else if(l8==1){ figura_dib[0]=0x8D; } else{ figura_dib[0]=0x8C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x8B; } else{ figura_dib[0]=0x8A; } } else if(l8==1){ figura_dib[0]=0x89; } else{ figura_dib[0]=0x88; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x87; } else{ figura_dib[0]=0x86; } } else if(l8==1){ figura_dib[0]=0x85; } else{ figura_dib[0]=0x84; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x83; } else{ figura_dib[0]=0x82; } } else if(l8==1){ figura_dib[0]=0x81; } else{ figura_dib[0]=0x80; } } else if(l2==1){ if(l3==1){ if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x7F; } else{ figura_dib[0]=0x7E; } } else if(l8==1){ figura_dib[0]=0x7D; } else{ figura_dib[0]=0x7C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x7B; } else{ figura_dib[0]=0x7A; } } else if(l8==1){ figura_dib[0]=0x79; } else{ figura_dib[0]=0x78; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x77; } else{ figura_dib[0]=0x76; } } else if(l8==1){ figura_dib[0]=0x75; } else{ figura_dib[0]=0x74; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x73; } else{ figura_dib[0]=0x72; } } else if(l8==1){ figura_dib[0]=0x71; } else{ figura_dib[0]=0x70; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x6F; } else{ figura_dib[0]=0x6E; } } else if(l8==1){ figura_dib[0]=0x6D; } else{ figura_dib[0]=0x6C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x6B; } else{ figura_dib[0]=0x6A; } } else if(l8==1){ figura_dib[0]=0x69; } else{ figura_dib[0]=0x68; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x67; } else{ figura_dib[0]=0x66; } } else if(l8==1){ figura_dib[0]=0x65; } else{ figura_dib[0]=0x64; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x63; } else{ figura_dib[0]=0x62; } } else if(l8==1){ figura_dib[0]=0x61; } else{ figura_dib[0]=0x60; } } else if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x5F; } else{ figura_dib[0]=0x5E; } } else if(l8==1){ figura_dib[0]=0x5D; } else{ figura_dib[0]=0x5C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x5B; } else{ figura_dib[0]=0x5A; } } else if(l8==1){ figura_dib[0]=0x59; } else{ figura_dib[0]=0x58; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x57; } else{ figura_dib[0]=0x56; } } else if(l8==1){ figura_dib[0]=0x55; } else{ figura_dib[0]=0x54; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x53; } else{ figura_dib[0]=0x52; } } else if(l8==1){ figura_dib[0]=0x51; } else{ figura_dib[0]=0x50; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x4F; } else{ figura_dib[0]=0x4E; } } else if(l8==1){ figura_dib[0]=0x4D; } else{ figura_dib[0]=0x4C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x4B; } else{ figura_dib[0]=0x4A; } } else if(l8==1){ figura_dib[0]=0x49; } else{ figura_dib[0]=0x48; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x47; } else{ figura_dib[0]=0x46; } } else if(l8==1){ figura_dib[0]=0x45; } else{ figura_dib[0]=0x44; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x43; } else{ figura_dib[0]=0x42; } } else if(l8==1){ figura_dib[0]=0x41; } else{ figura_dib[0]=0x40; } } else if(l3==1){ if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x3F; } else{ figura_dib[0]=0x3E; } } else if(l8==1){ figura_dib[0]=0x3D; } else{ figura_dib[0]=0x3C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x3B; } else{ figura_dib[0]=0x3A; } } else if(l8==1){ figura_dib[0]=0x39; } else{ figura_dib[0]=0x38; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x37; } else{ figura_dib[0]=0x36; } } else if(l8==1){ figura_dib[0]=0x35; } else{ figura_dib[0]=0x34; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x33; } else{ figura_dib[0]=0x32; } } else if(l8==1){ figura_dib[0]=0x31; } else{ figura_dib[0]=0x30; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x2F; } else{ figura_dib[0]=0x2E; } } else if(l8==1){ figura_dib[0]=0x2D; } else{ figura_dib[0]=0x2C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x2B; } else{ figura_dib[0]=0x2A; } } else if(l8==1){ figura_dib[0]=0x29; } else{ figura_dib[0]=0x28; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x27; } else{ figura_dib[0]=0x26; } } else if(l8==1){ figura_dib[0]=0x25; } else{ figura_dib[0]=0x24; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x23; } else{ figura_dib[0]=0x22; } } else if(l8==1){ figura_dib[0]=0x21; } else{ figura_dib[0]=0x20; } } else if(l4==1){ if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x1F; } else{ figura_dib[0]=0x1E; } } else if(l8==1){ figura_dib[0]=0x1D; } else{ figura_dib[0]=0x1C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x1B; } else{ figura_dib[0]=0x1A; } } else if(l8==1){ figura_dib[0]=0x19; } else{ figura_dib[0]=0x18; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x17; } else{ figura_dib[0]=0x16; } } else if(l8==1){ figura_dib[0]=0x15; } else{ figura_dib[0]=0x14; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x13; } else{ figura_dib[0]=0x12; } } else if(l8==1){ figura_dib[0]=0x11; } else{ figura_dib[0]=0x10; } } else if(l5==1){ if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x0F; } else{ figura_dib[0]=0x0E; } } else if(l8==1){ figura_dib[0]=0x0D; } else{ figura_dib[0]=0x0C; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x0B; } else{ figura_dib[0]=0x0A; } } else if(l8==1){ figura_dib[0]=0x09; } else{ figura_dib[0]=0x08; } } else if(l6==1){ if(l7==1){ if(l8==1){ figura_dib[0]=0x07; } else{ figura_dib[0]=0x06; } } else if(l8==1){ figura_dib[0]=0x05; } else{ figura_dib[0]=0x04; } } else if(l7==1){ if(l8==1){ figura_dib[0]=0x03; } else{ figura_dib[0]=0x02; } } else if(l8==1){ figura_dib[0]=0x01; } else{ figura_dib[0]=0x00; } ///// //// /// // //fila 2 // /// //// ///// if(l9==1){ if(l10==1){ if(l11==1){ if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xFF; } else{ figura_dib[1]=0xFE; } } else if(l16==1){ figura_dib[1]=0xFD; } else{ figura_dib[1]=0xFC; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xFB; } else{ figura_dib[1]=0xFA; } } else if(l16==1){ figura_dib[1]=0xF9; } else{ figura_dib[1]=0xF8; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xF7; } else{ figura_dib[1]=0xF6; } } else if(l16==1){ figura_dib[1]=0xF5; } else{ figura_dib[1]=0xF4; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xF3; } else{ figura_dib[1]=0xF2; } } else if(l16==1){ figura_dib[1]=0xF1; } else{ figura_dib[1]=0xF0; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xEF; } else{ figura_dib[1]=0xEE; } } else if(l16==1){ figura_dib[1]=0xED; } else{ figura_dib[1]=0xEC; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xEB; } else{ figura_dib[1]=0xEA; } } else if(l16==1){ figura_dib[1]=0xE9; } else{ figura_dib[1]=0xE8; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xE7; } else{ figura_dib[1]=0xE6; } } else if(l16==1){ figura_dib[1]=0xE5; } else{ figura_dib[1]=0xE4; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xE3; } else{ figura_dib[1]=0xE2; } } else if(l16==1){ figura_dib[1]=0xE1; } else{ figura_dib[1]=0xE0; } } else if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xDF; } else{ figura_dib[1]=0xDE; } } else if(l16==1){ figura_dib[1]=0xDD; } else{ figura_dib[1]=0xDC; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xDB; } else{ figura_dib[1]=0xDA; } } else if(l16==1){ figura_dib[1]=0xD9; } else{ figura_dib[1]=0xD8; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xD7; } else{ figura_dib[1]=0xD6; } } else if(l16==1){ figura_dib[1]=0xD5; } else{ figura_dib[1]=0xD4; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xD3; } else{ figura_dib[1]=0xD2; } } else if(l16==1){ figura_dib[1]=0xD1; } else{ figura_dib[1]=0xD0; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xCF; } else{ figura_dib[1]=0xCE; } } else if(l16==1){ figura_dib[1]=0xCD; } else{ figura_dib[1]=0xCC; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xCB; } else{ figura_dib[1]=0xCA; } } else if(l16==1){ figura_dib[1]=0xC9; } else{ figura_dib[1]=0xC8; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xC7; } else{ figura_dib[1]=0xC6; } } else if(l16==1){ figura_dib[1]=0xC5; } else{ figura_dib[1]=0xC4; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xC3; } else{ figura_dib[1]=0xC2; } } else if(l16==1){ figura_dib[1]=0xC1; } else{ figura_dib[1]=0xC0; } } else if(l11==1){ if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xBF; } else{ figura_dib[1]=0xBE; } } else if(l16==1){ figura_dib[1]=0xBD; } else{ figura_dib[1]=0xBC; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xBB; } else{ figura_dib[1]=0xBA; } } else if(l16==1){ figura_dib[1]=0xB9; } else{ figura_dib[1]=0xB8; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xB7; } else{ figura_dib[1]=0xB6; } } else if(l16==1){ figura_dib[1]=0xB5; } else{ figura_dib[1]=0xB4; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xB3; } else{ figura_dib[1]=0xB2; } } else if(l16==1){ figura_dib[1]=0xB1; } else{ figura_dib[1]=0xB0; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xAF; } else{ figura_dib[1]=0xAE; } } else if(l16==1){ figura_dib[1]=0xAD; } else{ figura_dib[1]=0xAC; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xAB; } else{ figura_dib[1]=0xAA; } } else if(l16==1){ figura_dib[1]=0xA9; } else{ figura_dib[1]=0xA8; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0xA7; } else{ figura_dib[1]=0xA6; } } else if(l16==1){ figura_dib[1]=0xA5; } else{ figura_dib[1]=0xA4; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0xA3; } else{ figura_dib[1]=0xA2; } } else if(l16==1){ figura_dib[1]=0xA1; } else{ figura_dib[1]=0xA0; } } else if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x9F; } else{ figura_dib[1]=0x9E; } } else if(l16==1){ figura_dib[1]=0x9D; } else{ figura_dib[1]=0x9C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x9B; } else{ figura_dib[1]=0x9A; } } else if(l16==1){ figura_dib[1]=0x99; } else{ figura_dib[1]=0x98; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x97; } else{ figura_dib[1]=0x96; } } else if(l16==1){ figura_dib[1]=0x95; } else{ figura_dib[1]=0x94; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x93; } else{ figura_dib[1]=0x92; } } else if(l16==1){ figura_dib[1]=0x91; } else{ figura_dib[1]=0x90; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x8F; } else{ figura_dib[1]=0x8E; } } else if(l16==1){ figura_dib[1]=0x8D; } else{ figura_dib[1]=0x8C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x8B; } else{ figura_dib[1]=0x8A; } } else if(l16==1){ figura_dib[1]=0x89; } else{ figura_dib[1]=0x88; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x87; } else{ figura_dib[1]=0x86; } } else if(l16==1){ figura_dib[1]=0x85; } else{ figura_dib[1]=0x84; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x83; } else{ figura_dib[1]=0x82; } } else if(l16==1){ figura_dib[1]=0x81; } else{ figura_dib[1]=0x80; } } else if(l10==1){ if(l11==1){ if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x7F; } else{ figura_dib[1]=0x7E; } } else if(l16==1){ figura_dib[1]=0x7D; } else{ figura_dib[1]=0x7C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x7B; } else{ figura_dib[1]=0x7A; } } else if(l16==1){ figura_dib[1]=0x79; } else{ figura_dib[1]=0x78; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x77; } else{ figura_dib[1]=0x76; } } else if(l16==1){ figura_dib[1]=0x75; } else{ figura_dib[1]=0x74; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x73; } else{ figura_dib[1]=0x72; } } else if(l16==1){ figura_dib[1]=0x71; } else{ figura_dib[1]=0x70; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x6F; } else{ figura_dib[1]=0x6E; } } else if(l16==1){ figura_dib[1]=0x6D; } else{ figura_dib[1]=0x6C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x6B; } else{ figura_dib[1]=0x6A; } } else if(l16==1){ figura_dib[1]=0x69; } else{ figura_dib[1]=0x68; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x67; } else{ figura_dib[1]=0x66; } } else if(l16==1){ figura_dib[1]=0x65; } else{ figura_dib[1]=0x64; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x63; } else{ figura_dib[1]=0x62; } } else if(l16==1){ figura_dib[1]=0x61; } else{ figura_dib[1]=0x60; } } else if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x5F; } else{ figura_dib[1]=0x5E; } } else if(l16==1){ figura_dib[1]=0x5D; } else{ figura_dib[1]=0x5C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x5B; } else{ figura_dib[1]=0x5A; } } else if(l16==1){ figura_dib[1]=0x59; } else{ figura_dib[1]=0x58; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x57; } else{ figura_dib[1]=0x56; } } else if(l16==1){ figura_dib[1]=0x55; } else{ figura_dib[1]=0x54; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x53; } else{ figura_dib[1]=0x52; } } else if(l16==1){ figura_dib[1]=0x51; } else{ figura_dib[1]=0x50; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x4F; } else{ figura_dib[1]=0x4E; } } else if(l16==1){ figura_dib[1]=0x4D; } else{ figura_dib[1]=0x4C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x4B; } else{ figura_dib[1]=0x4A; } } else if(l16==1){ figura_dib[1]=0x49; } else{ figura_dib[1]=0x48; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x47; } else{ figura_dib[1]=0x46; } } else if(l16==1){ figura_dib[1]=0x45; } else{ figura_dib[1]=0x44; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x43; } else{ figura_dib[1]=0x42; } } else if(l16==1){ figura_dib[1]=0x41; } else{ figura_dib[1]=0x40; } } else if(l11==1){ if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x3F; } else{ figura_dib[1]=0x3E; } } else if(l16==1){ figura_dib[1]=0x3D; } else{ figura_dib[1]=0x3C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x3B; } else{ figura_dib[1]=0x3A; } } else if(l16==1){ figura_dib[1]=0x39; } else{ figura_dib[1]=0x38; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x37; } else{ figura_dib[1]=0x36; } } else if(l16==1){ figura_dib[1]=0x35; } else{ figura_dib[1]=0x34; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x33; } else{ figura_dib[1]=0x32; } } else if(l16==1){ figura_dib[1]=0x31; } else{ figura_dib[1]=0x30; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x2F; } else{ figura_dib[1]=0x2E; } } else if(l16==1){ figura_dib[1]=0x2D; } else{ figura_dib[1]=0x2C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x2B; } else{ figura_dib[1]=0x2A; } } else if(l16==1){ figura_dib[1]=0x29; } else{ figura_dib[1]=0x28; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x27; } else{ figura_dib[1]=0x26; } } else if(l16==1){ figura_dib[1]=0x25; } else{ figura_dib[1]=0x24; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x23; } else{ figura_dib[1]=0x22; } } else if(l16==1){ figura_dib[1]=0x21; } else{ figura_dib[1]=0x20; } } else if(l12==1){ if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x1F; } else{ figura_dib[1]=0x1E; } } else if(l16==1){ figura_dib[1]=0x1D; } else{ figura_dib[1]=0x1C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x1B; } else{ figura_dib[1]=0x1A; } } else if(l16==1){ figura_dib[1]=0x19; } else{ figura_dib[1]=0x18; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x17; } else{ figura_dib[1]=0x16; } } else if(l16==1){ figura_dib[1]=0x15; } else{ figura_dib[1]=0x14; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x13; } else{ figura_dib[1]=0x12; } } else if(l16==1){ figura_dib[1]=0x11; } else{ figura_dib[1]=0x10; } } else if(l13==1){ if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x0F; } else{ figura_dib[1]=0x0E; } } else if(l16==1){ figura_dib[1]=0x0D; } else{ figura_dib[1]=0x0C; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x0B; } else{ figura_dib[1]=0x0A; } } else if(l16==1){ figura_dib[1]=0x09; } else{ figura_dib[1]=0x08; } } else if(l14==1){ if(l15==1){ if(l16==1){ figura_dib[1]=0x07; } else{ figura_dib[1]=0x06; } } else if(l16==1){ figura_dib[1]=0x05; } else{ figura_dib[1]=0x04; } } else if(l15==1){ if(l16==1){ figura_dib[1]=0x03; } else{ figura_dib[1]=0x02; } } else if(l16==1){ figura_dib[1]=0x01; } else{ figura_dib[1]=0x00; } ///// //// /// // //fila 3 // /// //// ///// if(l17==1){ if(l18==1){ if(l19==1){ if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xFF; } else{ figura_dib[2]=0xFE; } } else if(l24==1){ figura_dib[2]=0xFD; } else{ figura_dib[2]=0xFC; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xFB; } else{ figura_dib[2]=0xFA; } } else if(l24==1){ figura_dib[2]=0xF9; } else{ figura_dib[2]=0xF8; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xF7; } else{ figura_dib[2]=0xF6; } } else if(l24==1){ figura_dib[2]=0xF5; } else{ figura_dib[2]=0xF4; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xF3; } else{ figura_dib[2]=0xF2; } } else if(l24==1){ figura_dib[2]=0xF1; } else{ figura_dib[2]=0xF0; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xEF; } else{ figura_dib[2]=0xEE; } } else if(l24==1){ figura_dib[2]=0xED; } else{ figura_dib[2]=0xEC; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xEB; } else{ figura_dib[2]=0xEA; } } else if(l24==1){ figura_dib[2]=0xE9; } else{ figura_dib[2]=0xE8; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xE7; } else{ figura_dib[2]=0xE6; } } else if(l24==1){ figura_dib[2]=0xE5; } else{ figura_dib[2]=0xE4; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xE3; } else{ figura_dib[2]=0xE2; } } else if(l24==1){ figura_dib[2]=0xE1; } else{ figura_dib[2]=0xE0; } } else if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xDF; } else{ figura_dib[2]=0xDE; } } else if(l24==1){ figura_dib[2]=0xDD; } else{ figura_dib[2]=0xDC; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xDB; } else{ figura_dib[2]=0xDA; } } else if(l24==1){ figura_dib[2]=0xD9; } else{ figura_dib[2]=0xD8; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xD7; } else{ figura_dib[2]=0xD6; } } else if(l24==1){ figura_dib[2]=0xD5; } else{ figura_dib[2]=0xD4; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xD3; } else{ figura_dib[2]=0xD2; } } else if(l24==1){ figura_dib[2]=0xD1; } else{ figura_dib[2]=0xD0; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xCF; } else{ figura_dib[2]=0xCE; } } else if(l24==1){ figura_dib[2]=0xCD; } else{ figura_dib[2]=0xCC; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xCB; } else{ figura_dib[2]=0xCA; } } else if(l24==1){ figura_dib[2]=0xC9; } else{ figura_dib[2]=0xC8; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xC7; } else{ figura_dib[2]=0xC6; } } else if(l24==1){ figura_dib[2]=0xC5; } else{ figura_dib[2]=0xC4; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xC3; } else{ figura_dib[2]=0xC2; } } else if(l24==1){ figura_dib[2]=0xC1; } else{ figura_dib[2]=0xC0; } } else if(l19==1){ if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xBF; } else{ figura_dib[2]=0xBE; } } else if(l24==1){ figura_dib[2]=0xBD; } else{ figura_dib[2]=0xBC; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xBB; } else{ figura_dib[2]=0xBA; } } else if(l24==1){ figura_dib[2]=0xB9; } else{ figura_dib[2]=0xB8; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xB7; } else{ figura_dib[2]=0xB6; } } else if(l24==1){ figura_dib[2]=0xB5; } else{ figura_dib[2]=0xB4; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xB3; } else{ figura_dib[2]=0xB2; } } else if(l24==1){ figura_dib[2]=0xB1; } else{ figura_dib[2]=0xB0; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xAF; } else{ figura_dib[2]=0xAE; } } else if(l24==1){ figura_dib[2]=0xAD; } else{ figura_dib[2]=0xAC; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xAB; } else{ figura_dib[2]=0xAA; } } else if(l24==1){ figura_dib[2]=0xA9; } else{ figura_dib[2]=0xA8; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0xA7; } else{ figura_dib[2]=0xA6; } } else if(l24==1){ figura_dib[2]=0xA5; } else{ figura_dib[2]=0xA4; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0xA3; } else{ figura_dib[2]=0xA2; } } else if(l24==1){ figura_dib[2]=0xA1; } else{ figura_dib[2]=0xA0; } } else if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x9F; } else{ figura_dib[2]=0x9E; } } else if(l24==1){ figura_dib[2]=0x9D; } else{ figura_dib[2]=0x9C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x9B; } else{ figura_dib[2]=0x9A; } } else if(l24==1){ figura_dib[2]=0x99; } else{ figura_dib[2]=0x98; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x97; } else{ figura_dib[2]=0x96; } } else if(l24==1){ figura_dib[2]=0x95; } else{ figura_dib[2]=0x94; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x93; } else{ figura_dib[2]=0x92; } } else if(l24==1){ figura_dib[2]=0x91; } else{ figura_dib[2]=0x90; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x8F; } else{ figura_dib[2]=0x8E; } } else if(l24==1){ figura_dib[2]=0x8D; } else{ figura_dib[2]=0x8C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x8B; } else{ figura_dib[2]=0x8A; } } else if(l24==1){ figura_dib[2]=0x89; } else{ figura_dib[2]=0x88; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x87; } else{ figura_dib[2]=0x86; } } else if(l24==1){ figura_dib[2]=0x85; } else{ figura_dib[2]=0x84; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x83; } else{ figura_dib[2]=0x82; } } else if(l24==1){ figura_dib[2]=0x81; } else{ figura_dib[2]=0x80; } } else if(l18==1){ if(l19==1){ if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x7F; } else{ figura_dib[2]=0x7E; } } else if(l24==1){ figura_dib[2]=0x7D; } else{ figura_dib[2]=0x7C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x7B; } else{ figura_dib[2]=0x7A; } } else if(l24==1){ figura_dib[2]=0x79; } else{ figura_dib[2]=0x78; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x77; } else{ figura_dib[2]=0x76; } } else if(l24==1){ figura_dib[2]=0x75; } else{ figura_dib[2]=0x74; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x73; } else{ figura_dib[2]=0x72; } } else if(l24==1){ figura_dib[2]=0x71; } else{ figura_dib[2]=0x70; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x6F; } else{ figura_dib[2]=0x6E; } } else if(l24==1){ figura_dib[2]=0x6D; } else{ figura_dib[2]=0x6C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x6B; } else{ figura_dib[2]=0x6A; } } else if(l24==1){ figura_dib[2]=0x69; } else{ figura_dib[2]=0x68; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x67; } else{ figura_dib[2]=0x66; } } else if(l24==1){ figura_dib[2]=0x65; } else{ figura_dib[2]=0x64; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x63; } else{ figura_dib[2]=0x62; } } else if(l24==1){ figura_dib[2]=0x61; } else{ figura_dib[2]=0x60; } } else if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x5F; } else{ figura_dib[2]=0x5E; } } else if(l24==1){ figura_dib[2]=0x5D; } else{ figura_dib[2]=0x5C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x5B; } else{ figura_dib[2]=0x5A; } } else if(l24==1){ figura_dib[2]=0x59; } else{ figura_dib[2]=0x58; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x57; } else{ figura_dib[2]=0x56; } } else if(l24==1){ figura_dib[2]=0x55; } else{ figura_dib[2]=0x54; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x53; } else{ figura_dib[2]=0x52; } } else if(l24==1){ figura_dib[2]=0x51; } else{ figura_dib[2]=0x50; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x4F; } else{ figura_dib[2]=0x4E; } } else if(l24==1){ figura_dib[2]=0x4D; } else{ figura_dib[2]=0x4C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x4B; } else{ figura_dib[2]=0x4A; } } else if(l24==1){ figura_dib[2]=0x49; } else{ figura_dib[2]=0x48; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x47; } else{ figura_dib[2]=0x46; } } else if(l24==1){ figura_dib[2]=0x45; } else{ figura_dib[2]=0x44; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x43; } else{ figura_dib[2]=0x42; } } else if(l24==1){ figura_dib[2]=0x41; } else{ figura_dib[2]=0x40; } } else if(l19==1){ if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x3F; } else{ figura_dib[2]=0x3E; } } else if(l24==1){ figura_dib[2]=0x3D; } else{ figura_dib[2]=0x3C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x3B; } else{ figura_dib[2]=0x3A; } } else if(l24==1){ figura_dib[2]=0x39; } else{ figura_dib[2]=0x38; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x37; } else{ figura_dib[2]=0x36; } } else if(l24==1){ figura_dib[2]=0x35; } else{ figura_dib[2]=0x34; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x33; } else{ figura_dib[2]=0x32; } } else if(l24==1){ figura_dib[2]=0x31; } else{ figura_dib[2]=0x30; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x2F; } else{ figura_dib[2]=0x2E; } } else if(l24==1){ figura_dib[2]=0x2D; } else{ figura_dib[2]=0x2C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x2B; } else{ figura_dib[2]=0x2A; } } else if(l24==1){ figura_dib[2]=0x29; } else{ figura_dib[2]=0x28; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x27; } else{ figura_dib[2]=0x26; } } else if(l24==1){ figura_dib[2]=0x25; } else{ figura_dib[2]=0x24; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x23; } else{ figura_dib[2]=0x22; } } else if(l24==1){ figura_dib[2]=0x21; } else{ figura_dib[2]=0x20; } } else if(l20==1){ if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x1F; } else{ figura_dib[2]=0x1E; } } else if(l24==1){ figura_dib[2]=0x1D; } else{ figura_dib[2]=0x1C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x1B; } else{ figura_dib[2]=0x1A; } } else if(l24==1){ figura_dib[2]=0x19; } else{ figura_dib[2]=0x18; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x17; } else{ figura_dib[2]=0x16; } } else if(l24==1){ figura_dib[2]=0x15; } else{ figura_dib[2]=0x14; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x13; } else{ figura_dib[2]=0x12; } } else if(l24==1){ figura_dib[2]=0x11; } else{ figura_dib[2]=0x10; } } else if(l21==1){ if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x0F; } else{ figura_dib[2]=0x0E; } } else if(l24==1){ figura_dib[2]=0x0D; } else{ figura_dib[2]=0x0C; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x0B; } else{ figura_dib[2]=0x0A; } } else if(l24==1){ figura_dib[2]=0x09; } else{ figura_dib[2]=0x08; } } else if(l22==1){ if(l23==1){ if(l24==1){ figura_dib[2]=0x07; } else{ figura_dib[2]=0x06; } } else if(l24==1){ figura_dib[2]=0x05; } else{ figura_dib[2]=0x04; } } else if(l23==1){ if(l24==1){ figura_dib[2]=0x03; } else{ figura_dib[2]=0x02; } } else if(l24==1){ figura_dib[2]=0x01; } else{ figura_dib[2]=0x00; } ///// //// /// // //fila 4 // /// //// ///// if(l25==1){ if(l26==1){ if(l27==1){ if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xFF; } else{ figura_dib[3]=0xFE; } } else if(l32==1){ figura_dib[3]=0xFD; } else{ figura_dib[3]=0xFC; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xFB; } else{ figura_dib[3]=0xFA; } } else if(l32==1){ figura_dib[3]=0xF9; } else{ figura_dib[3]=0xF8; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xF7; } else{ figura_dib[3]=0xF6; } } else if(l32==1){ figura_dib[3]=0xF5; } else{ figura_dib[3]=0xF4; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xF3; } else{ figura_dib[3]=0xF2; } } else if(l32==1){ figura_dib[3]=0xF1; } else{ figura_dib[3]=0xF0; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xEF; } else{ figura_dib[3]=0xEE; } } else if(l32==1){ figura_dib[3]=0xED; } else{ figura_dib[3]=0xEC; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xEB; } else{ figura_dib[3]=0xEA; } } else if(l32==1){ figura_dib[3]=0xE9; } else{ figura_dib[3]=0xE8; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xE7; } else{ figura_dib[3]=0xE6; } } else if(l32==1){ figura_dib[3]=0xE5; } else{ figura_dib[3]=0xE4; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xE3; } else{ figura_dib[3]=0xE2; } } else if(l32==1){ figura_dib[3]=0xE1; } else{ figura_dib[3]=0xE0; } } else if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xDF; } else{ figura_dib[3]=0xDE; } } else if(l32==1){ figura_dib[3]=0xDD; } else{ figura_dib[3]=0xDC; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xDB; } else{ figura_dib[3]=0xDA; } } else if(l32==1){ figura_dib[3]=0xD9; } else{ figura_dib[3]=0xD8; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xD7; } else{ figura_dib[3]=0xD6; } } else if(l32==1){ figura_dib[3]=0xD5; } else{ figura_dib[3]=0xD4; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xD3; } else{ figura_dib[3]=0xD2; } } else if(l32==1){ figura_dib[3]=0xD1; } else{ figura_dib[3]=0xD0; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xCF; } else{ figura_dib[3]=0xCE; } } else if(l32==1){ figura_dib[3]=0xCD; } else{ figura_dib[3]=0xCC; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xCB; } else{ figura_dib[3]=0xCA; } } else if(l32==1){ figura_dib[3]=0xC9; } else{ figura_dib[3]=0xC8; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xC7; } else{ figura_dib[3]=0xC6; } } else if(l32==1){ figura_dib[3]=0xC5; } else{ figura_dib[3]=0xC4; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xC3; } else{ figura_dib[3]=0xC2; } } else if(l32==1){ figura_dib[3]=0xC1; } else{ figura_dib[3]=0xC0; } } else if(l27==1){ if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xBF; } else{ figura_dib[3]=0xBE; } } else if(l32==1){ figura_dib[3]=0xBD; } else{ figura_dib[3]=0xBC; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xBB; } else{ figura_dib[3]=0xBA; } } else if(l32==1){ figura_dib[3]=0xB9; } else{ figura_dib[3]=0xB8; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xB7; } else{ figura_dib[3]=0xB6; } } else if(l32==1){ figura_dib[3]=0xB5; } else{ figura_dib[3]=0xB4; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xB3; } else{ figura_dib[3]=0xB2; } } else if(l32==1){ figura_dib[3]=0xB1; } else{ figura_dib[3]=0xB0; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xAF; } else{ figura_dib[3]=0xAE; } } else if(l32==1){ figura_dib[3]=0xAD; } else{ figura_dib[3]=0xAC; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xAB; } else{ figura_dib[3]=0xAA; } } else if(l32==1){ figura_dib[3]=0xA9; } else{ figura_dib[3]=0xA8; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0xA7; } else{ figura_dib[3]=0xA6; } } else if(l32==1){ figura_dib[3]=0xA5; } else{ figura_dib[3]=0xA4; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0xA3; } else{ figura_dib[3]=0xA2; } } else if(l32==1){ figura_dib[3]=0xA1; } else{ figura_dib[3]=0xA0; } } else if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x9F; } else{ figura_dib[3]=0x9E; } } else if(l32==1){ figura_dib[3]=0x9D; } else{ figura_dib[3]=0x9C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x9B; } else{ figura_dib[3]=0x9A; } } else if(l32==1){ figura_dib[3]=0x99; } else{ figura_dib[3]=0x98; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x97; } else{ figura_dib[3]=0x96; } } else if(l32==1){ figura_dib[3]=0x95; } else{ figura_dib[3]=0x94; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x93; } else{ figura_dib[3]=0x92; } } else if(l32==1){ figura_dib[3]=0x91; } else{ figura_dib[3]=0x90; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x8F; } else{ figura_dib[3]=0x8E; } } else if(l32==1){ figura_dib[3]=0x8D; } else{ figura_dib[3]=0x8C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x8B; } else{ figura_dib[3]=0x8A; } } else if(l32==1){ figura_dib[3]=0x89; } else{ figura_dib[3]=0x88; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x87; } else{ figura_dib[3]=0x86; } } else if(l32==1){ figura_dib[3]=0x85; } else{ figura_dib[3]=0x84; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x83; } else{ figura_dib[3]=0x82; } } else if(l32==1){ figura_dib[3]=0x81; } else{ figura_dib[3]=0x80; } } else if(l26==1){ if(l27==1){ if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x7F; } else{ figura_dib[3]=0x7E; } } else if(l32==1){ figura_dib[3]=0x7D; } else{ figura_dib[3]=0x7C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x7B; } else{ figura_dib[3]=0x7A; } } else if(l32==1){ figura_dib[3]=0x79; } else{ figura_dib[3]=0x78; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x77; } else{ figura_dib[3]=0x76; } } else if(l32==1){ figura_dib[3]=0x75; } else{ figura_dib[3]=0x74; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x73; } else{ figura_dib[3]=0x72; } } else if(l32==1){ figura_dib[3]=0x71; } else{ figura_dib[3]=0x70; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l30==1){ figura_dib[3]=0x6F; } else{ figura_dib[3]=0x6E; } } else if(l32==1){ figura_dib[3]=0x6D; } else{ figura_dib[3]=0x6C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x6B; } else{ figura_dib[3]=0x6A; } } else if(l32==1){ figura_dib[3]=0x69; } else{ figura_dib[3]=0x68; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x67; } else{ figura_dib[3]=0x66; } } else if(l32==1){ figura_dib[3]=0x65; } else{ figura_dib[3]=0x64; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x63; } else{ figura_dib[3]=0x62; } } else if(l32==1){ figura_dib[3]=0x61; } else{ figura_dib[3]=0x60; } } else if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x5F; } else{ figura_dib[3]=0x5E; } } else if(l32==1){ figura_dib[3]=0x5D; } else{ figura_dib[3]=0x5C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x5B; } else{ figura_dib[3]=0x5A; } } else if(l32==1){ figura_dib[3]=0x59; } else{ figura_dib[3]=0x58; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x57; } else{ figura_dib[3]=0x56; } } else if(l32==1){ figura_dib[3]=0x55; } else{ figura_dib[3]=0x54; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x53; } else{ figura_dib[3]=0x52; } } else if(l32==1){ figura_dib[3]=0x51; } else{ figura_dib[3]=0x50; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x4F; } else{ figura_dib[3]=0x4E; } } else if(l32==1){ figura_dib[3]=0x4D; } else{ figura_dib[3]=0x4C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x4B; } else{ figura_dib[3]=0x4A; } } else if(l32==1){ figura_dib[3]=0x49; } else{ figura_dib[3]=0x48; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x47; } else{ figura_dib[3]=0x46; } } else if(l32==1){ figura_dib[3]=0x45; } else{ figura_dib[3]=0x44; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x43; } else{ figura_dib[3]=0x42; } } else if(l32==1){ figura_dib[3]=0x41; } else{ figura_dib[3]=0x40; } } else if(l27==1){ if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x3F; } else{ figura_dib[3]=0x3E; } } else if(l32==1){ figura_dib[3]=0x3D; } else{ figura_dib[3]=0x3C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x3B; } else{ figura_dib[3]=0x3A; } } else if(l32==1){ figura_dib[3]=0x39; } else{ figura_dib[3]=0x38; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x37; } else{ figura_dib[3]=0x36; } } else if(l32==1){ figura_dib[3]=0x35; } else{ figura_dib[3]=0x34; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x33; } else{ figura_dib[3]=0x32; } } else if(l32==1){ figura_dib[3]=0x31; } else{ figura_dib[3]=0x30; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x2F; } else{ figura_dib[3]=0x2E; } } else if(l32==1){ figura_dib[3]=0x2D; } else{ figura_dib[3]=0x2C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x2B; } else{ figura_dib[3]=0x2A; } } else if(l32==1){ figura_dib[3]=0x29; } else{ figura_dib[3]=0x28; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x27; } else{ figura_dib[3]=0x26; } } else if(l32==1){ figura_dib[3]=0x25; } else{ figura_dib[3]=0x24; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x23; } else{ figura_dib[3]=0x22; } } else if(l32==1){ figura_dib[3]=0x21; } else{ figura_dib[3]=0x20; } } else if(l28==1){ if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x1F; } else{ figura_dib[3]=0x1E; } } else if(l32==1){ figura_dib[3]=0x1D; } else{ figura_dib[3]=0x1C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x1B; } else{ figura_dib[3]=0x1A; } } else if(l32==1){ figura_dib[3]=0x19; } else{ figura_dib[3]=0x18; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x17; } else{ figura_dib[3]=0x16; } } else if(l32==1){ figura_dib[3]=0x15; } else{ figura_dib[3]=0x14; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x13; } else{ figura_dib[3]=0x12; } } else if(l32==1){ figura_dib[3]=0x11; } else{ figura_dib[3]=0x10; } } else if(l29==1){ if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x0F; } else{ figura_dib[3]=0x0E; } } else if(l32==1){ figura_dib[3]=0x0D; } else{ figura_dib[3]=0x0C; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x0B; } else{ figura_dib[3]=0x0A; } } else if(l32==1){ figura_dib[3]=0x09; } else{ figura_dib[3]=0x08; } } else if(l30==1){ if(l31==1){ if(l32==1){ figura_dib[3]=0x07; } else{ figura_dib[3]=0x06; } } else if(l32==1){ figura_dib[3]=0x05; } else{ figura_dib[3]=0x04; } } else if(l31==1){ if(l32==1){ figura_dib[3]=0x03; } else{ figura_dib[3]=0x02; } } else if(l32==1){ figura_dib[3]=0x01; } else{ figura_dib[3]=0x00; } ///// //// /// // //fila 5 // /// //// ///// if(l33==1){ if(l34==1){ if(l35==1){ if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xFF; } else{ figura_dib[4]=0xFE; } } else if(l40==1){ figura_dib[4]=0xFD; } else{ figura_dib[4]=0xFC; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xFB; } else{ figura_dib[4]=0xFA; } } else if(l40==1){ figura_dib[4]=0xF9; } else{ figura_dib[4]=0xF8; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xF7; } else{ figura_dib[4]=0xF6; } } else if(l40==1){ figura_dib[4]=0xF5; } else{ figura_dib[4]=0xF4; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xF3; } else{ figura_dib[4]=0xF2; } } else if(l40==1){ figura_dib[4]=0xF1; } else{ figura_dib[4]=0xF0; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xEF; } else{ figura_dib[4]=0xEE; } } else if(l40==1){ figura_dib[4]=0xED; } else{ figura_dib[4]=0xEC; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xEB; } else{ figura_dib[4]=0xEA; } } else if(l40==1){ figura_dib[4]=0xE9; } else{ figura_dib[4]=0xE8; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xE7; } else{ figura_dib[4]=0xE6; } } else if(l40==1){ figura_dib[4]=0xE5; } else{ figura_dib[4]=0xE4; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xE3; } else{ figura_dib[4]=0xE2; } } else if(l40==1){ figura_dib[4]=0xE1; } else{ figura_dib[4]=0xE0; } } else if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xDF; } else{ figura_dib[4]=0xDE; } } else if(l40==1){ figura_dib[4]=0xDD; } else{ figura_dib[4]=0xDC; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xDB; } else{ figura_dib[4]=0xDA; } } else if(l40==1){ figura_dib[4]=0xD9; } else{ figura_dib[4]=0xD8; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xD7; } else{ figura_dib[4]=0xD6; } } else if(l40==1){ figura_dib[4]=0xD5; } else{ figura_dib[4]=0xD4; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xD3; } else{ figura_dib[4]=0xD2; } } else if(l40==1){ figura_dib[4]=0xD1; } else{ figura_dib[4]=0xD0; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xCF; } else{ figura_dib[4]=0xCE; } } else if(l40==1){ figura_dib[4]=0xCD; } else{ figura_dib[4]=0xCC; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xCB; } else{ figura_dib[4]=0xCA; } } else if(l40==1){ figura_dib[4]=0xC9; } else{ figura_dib[4]=0xC8; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xC7; } else{ figura_dib[4]=0xC6; } } else if(l40==1){ figura_dib[4]=0xC5; } else{ figura_dib[4]=0xC4; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xC3; } else{ figura_dib[4]=0xC2; } } else if(l40==1){ figura_dib[4]=0xC1; } else{ figura_dib[4]=0xC0; } } else if(l35==1){ if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xBF; } else{ figura_dib[4]=0xBE; } } else if(l40==1){ figura_dib[4]=0xBD; } else{ figura_dib[4]=0xBC; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xBB; } else{ figura_dib[4]=0xBA; } } else if(l40==1){ figura_dib[4]=0xB9; } else{ figura_dib[4]=0xB8; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xB7; } else{ figura_dib[4]=0xB6; } } else if(l40==1){ figura_dib[4]=0xB5; } else{ figura_dib[4]=0xB4; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xB3; } else{ figura_dib[4]=0xB2; } } else if(l40==1){ figura_dib[4]=0xB1; } else{ figura_dib[4]=0xB0; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xAF; } else{ figura_dib[4]=0xAE; } } else if(l40==1){ figura_dib[4]=0xAD; } else{ figura_dib[4]=0xAC; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xAB; } else{ figura_dib[4]=0xAA; } } else if(l40==1){ figura_dib[4]=0xA9; } else{ figura_dib[4]=0xA8; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0xA7; } else{ figura_dib[4]=0xA6; } } else if(l40==1){ figura_dib[4]=0xA5; } else{ figura_dib[4]=0xA4; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0xA3; } else{ figura_dib[4]=0xA2; } } else if(l40==1){ figura_dib[4]=0xA1; } else{ figura_dib[4]=0xA0; } } else if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x9F; } else{ figura_dib[4]=0x9E; } } else if(l40==1){ figura_dib[4]=0x9D; } else{ figura_dib[4]=0x9C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x9B; } else{ figura_dib[4]=0x9A; } } else if(l40==1){ figura_dib[4]=0x99; } else{ figura_dib[4]=0x98; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x97; } else{ figura_dib[4]=0x96; } } else if(l40==1){ figura_dib[4]=0x95; } else{ figura_dib[4]=0x94; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x93; } else{ figura_dib[4]=0x92; } } else if(l40==1){ figura_dib[4]=0x91; } else{ figura_dib[4]=0x90; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x8F; } else{ figura_dib[4]=0x8E; } } else if(l40==1){ figura_dib[4]=0x8D; } else{ figura_dib[4]=0x8C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x8B; } else{ figura_dib[4]=0x8A; } } else if(l40==1){ figura_dib[4]=0x89; } else{ figura_dib[4]=0x88; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x87; } else{ figura_dib[4]=0x86; } } else if(l40==1){ figura_dib[4]=0x85; } else{ figura_dib[4]=0x84; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x83; } else{ figura_dib[4]=0x82; } } else if(l40==1){ figura_dib[4]=0x81; } else{ figura_dib[4]=0x80; } } else if(l34==1){ if(l35==1){ if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x7F; } else{ figura_dib[4]=0x7E; } } else if(l40==1){ figura_dib[4]=0x7D; } else{ figura_dib[4]=0x7C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x7B; } else{ figura_dib[4]=0x7A; } } else if(l40==1){ figura_dib[4]=0x79; } else{ figura_dib[4]=0x78; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x77; } else{ figura_dib[4]=0x76; } } else if(l40==1){ figura_dib[4]=0x75; } else{ figura_dib[4]=0x74; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x73; } else{ figura_dib[4]=0x72; } } else if(l40==1){ figura_dib[4]=0x71; } else{ figura_dib[4]=0x70; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x6F; } else{ figura_dib[4]=0x6E; } } else if(l40==1){ figura_dib[4]=0x6D; } else{ figura_dib[4]=0x6C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x6B; } else{ figura_dib[4]=0x6A; } } else if(l40==1){ figura_dib[4]=0x69; } else{ figura_dib[4]=0x68; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x67; } else{ figura_dib[4]=0x66; } } else if(l40==1){ figura_dib[4]=0x65; } else{ figura_dib[4]=0x64; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x63; } else{ figura_dib[4]=0x62; } } else if(l40==1){ figura_dib[4]=0x61; } else{ figura_dib[4]=0x60; } } else if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x5F; } else{ figura_dib[4]=0x5E; } } else if(l40==1){ figura_dib[4]=0x5D; } else{ figura_dib[4]=0x5C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x5B; } else{ figura_dib[4]=0x5A; } } else if(l40==1){ figura_dib[4]=0x59; } else{ figura_dib[4]=0x58; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x57; } else{ figura_dib[4]=0x56; } } else if(l40==1){ figura_dib[4]=0x55; } else{ figura_dib[4]=0x54; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x53; } else{ figura_dib[4]=0x52; } } else if(l40==1){ figura_dib[4]=0x51; } else{ figura_dib[4]=0x50; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x4F; } else{ figura_dib[4]=0x4E; } } else if(l40==1){ figura_dib[4]=0x4D; } else{ figura_dib[4]=0x4C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x4B; } else{ figura_dib[4]=0x4A; } } else if(l40==1){ figura_dib[4]=0x49; } else{ figura_dib[4]=0x48; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x47; } else{ figura_dib[4]=0x46; } } else if(l40==1){ figura_dib[4]=0x45; } else{ figura_dib[4]=0x44; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x43; } else{ figura_dib[4]=0x42; } } else if(l40==1){ figura_dib[4]=0x41; } else{ figura_dib[4]=0x40; } } else if(l35==1){ if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x3F; } else{ figura_dib[4]=0x3E; } } else if(l40==1){ figura_dib[4]=0x3D; } else{ figura_dib[4]=0x3C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x3B; } else{ figura_dib[4]=0x3A; } } else if(l40==1){ figura_dib[4]=0x39; } else{ figura_dib[4]=0x38; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x37; } else{ figura_dib[4]=0x36; } } else if(l40==1){ figura_dib[4]=0x35; } else{ figura_dib[4]=0x34; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x33; } else{ figura_dib[4]=0x32; } } else if(l40==1){ figura_dib[4]=0x31; } else{ figura_dib[4]=0x30; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x2F; } else{ figura_dib[4]=0x2E; } } else if(l40==1){ figura_dib[4]=0x2D; } else{ figura_dib[4]=0x2C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x2B; } else{ figura_dib[4]=0x2A; } } else if(l40==1){ figura_dib[4]=0x29; } else{ figura_dib[4]=0x28; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x27; } else{ figura_dib[4]=0x26; } } else if(l40==1){ figura_dib[4]=0x25; } else{ figura_dib[4]=0x24; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x23; } else{ figura_dib[4]=0x22; } } else if(l40==1){ figura_dib[4]=0x21; } else{ figura_dib[4]=0x20; } } else if(l36==1){ if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x1F; } else{ figura_dib[4]=0x1E; } } else if(l40==1){ figura_dib[4]=0x1D; } else{ figura_dib[4]=0x1C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x1B; } else{ figura_dib[4]=0x1A; } } else if(l40==1){ figura_dib[4]=0x19; } else{ figura_dib[4]=0x18; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x17; } else{ figura_dib[4]=0x16; } } else if(l40==1){ figura_dib[4]=0x15; } else{ figura_dib[4]=0x14; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x13; } else{ figura_dib[4]=0x12; } } else if(l40==1){ figura_dib[4]=0x11; } else{ figura_dib[4]=0x10; } } else if(l37==1){ if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x0F; } else{ figura_dib[4]=0x0E; } } else if(l40==1){ figura_dib[4]=0x0D; } else{ figura_dib[4]=0x0C; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x0B; } else{ figura_dib[4]=0x0A; } } else if(l40==1){ figura_dib[4]=0x09; } else{ figura_dib[4]=0x08; } } else if(l38==1){ if(l39==1){ if(l40==1){ figura_dib[4]=0x07; } else{ figura_dib[4]=0x06; } } else if(l40==1){ figura_dib[4]=0x05; } else{ figura_dib[4]=0x04; } } else if(l39==1){ if(l40==1){ figura_dib[4]=0x03; } else{ figura_dib[4]=0x02; } } else if(l40==1){ figura_dib[4]=0x01; } else{ figura_dib[4]=0x00; } ///// //// /// // //fila 6 // /// //// ///// if(l41==1){ if(l42==1){ if(l43==1){ if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xFF; } else{ figura_dib[5]=0xFE; } } else if(l48==1){ figura_dib[5]=0xFD; } else{ figura_dib[5]=0xFC; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xFB; } else{ figura_dib[5]=0xFA; } } else if(l48==1){ figura_dib[5]=0xF9; } else{ figura_dib[5]=0xF8; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xF7; } else{ figura_dib[5]=0xF6; } } else if(l48==1){ figura_dib[5]=0xF5; } else{ figura_dib[5]=0xF4; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xF3; } else{ figura_dib[5]=0xF2; } } else if(l48==1){ figura_dib[5]=0xF1; } else{ figura_dib[5]=0xF0; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xEF; } else{ figura_dib[5]=0xEE; } } else if(l48==1){ figura_dib[5]=0xED; } else{ figura_dib[5]=0xEC; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xEB; } else{ figura_dib[5]=0xEA; } } else if(l48==1){ figura_dib[5]=0xE9; } else{ figura_dib[5]=0xE8; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xE7; } else{ figura_dib[5]=0xE6; } } else if(l45==1){ figura_dib[5]=0xE5; } else{ figura_dib[5]=0xE4; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xE3; } else{ figura_dib[5]=0xE2; } } else if(l48==1){ figura_dib[5]=0xE1; } else{ figura_dib[5]=0xE0; } } else if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xDF; } else{ figura_dib[5]=0xDE; } } else if(l48==1){ figura_dib[5]=0xDD; } else{ figura_dib[5]=0xDC; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xDB; } else{ figura_dib[5]=0xDA; } } else if(l48==1){ figura_dib[5]=0xD9; } else{ figura_dib[5]=0xD8; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xD7; } else{ figura_dib[5]=0xD6; } } else if(l48==1){ figura_dib[5]=0xD5; } else{ figura_dib[5]=0xD4; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xD3; } else{ figura_dib[5]=0xD2; } } else if(l48==1){ figura_dib[5]=0xD1; } else{ figura_dib[5]=0xD0; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xCF; } else{ figura_dib[5]=0xCE; } } else if(l48==1){ figura_dib[5]=0xCD; } else{ figura_dib[5]=0xCC; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xCB; } else{ figura_dib[5]=0xCA; } } else if(l48==1){ figura_dib[5]=0xC9; } else{ figura_dib[5]=0xC8; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xC7; } else{ figura_dib[5]=0xC6; } } else if(l48==1){ figura_dib[5]=0xC5; } else{ figura_dib[5]=0xC4; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xC3; } else{ figura_dib[5]=0xC2; } } else if(l48==1){ figura_dib[5]=0xC1; } else{ figura_dib[5]=0xC0; } } else if(l43==1){ if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xBF; } else{ figura_dib[5]=0xBE; } } else if(l48==1){ figura_dib[5]=0xBD; } else{ figura_dib[5]=0xBC; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xBB; } else{ figura_dib[5]=0xBA; } } else if(l48==1){ figura_dib[5]=0xB9; } else{ figura_dib[5]=0xB8; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xB7; } else{ figura_dib[5]=0xB6; } } else if(l48==1){ figura_dib[5]=0xB5; } else{ figura_dib[5]=0xB4; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xB3; } else{ figura_dib[5]=0xB2; } } else if(l48==1){ figura_dib[5]=0xB1; } else{ figura_dib[5]=0xB0; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xAF; } else{ figura_dib[5]=0xAE; } } else if(l48==1){ figura_dib[5]=0xAD; } else{ figura_dib[5]=0xAC; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xAB; } else{ figura_dib[5]=0xAA; } } else if(l48==1){ figura_dib[5]=0xA9; } else{ figura_dib[5]=0xA8; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0xA7; } else{ figura_dib[5]=0xA6; } } else if(l48==1){ figura_dib[5]=0xA5; } else{ figura_dib[5]=0xA4; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0xA3; } else{ figura_dib[5]=0xA2; } } else if(l48==1){ figura_dib[5]=0xA1; } else{ figura_dib[5]=0xA0; } } else if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x9F; } else{ figura_dib[5]=0x9E; } } else if(l48==1){ figura_dib[5]=0x9D; } else{ figura_dib[5]=0x9C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x9B; } else{ figura_dib[5]=0x9A; } } else if(l48==1){ figura_dib[5]=0x99; } else{ figura_dib[5]=0x98; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x97; } else{ figura_dib[5]=0x96; } } else if(l48==1){ figura_dib[5]=0x95; } else{ figura_dib[5]=0x94; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x93; } else{ figura_dib[5]=0x92; } } else if(l48==1){ figura_dib[5]=0x91; } else{ figura_dib[5]=0x90; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x8F; } else{ figura_dib[5]=0x8E; } } else if(l48==1){ figura_dib[5]=0x8D; } else{ figura_dib[5]=0x8C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x8B; } else{ figura_dib[5]=0x8A; } } else if(l48==1){ figura_dib[5]=0x89; } else{ figura_dib[5]=0x88; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x87; } else{ figura_dib[5]=0x86; } } else if(l48==1){ figura_dib[5]=0x85; } else{ figura_dib[5]=0x84; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x83; } else{ figura_dib[5]=0x82; } } else if(l48==1){ figura_dib[5]=0x81; } else{ figura_dib[5]=0x80; } } else if(l42==1){ if(l43==1){ if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x7F; } else{ figura_dib[5]=0x7E; } } else if(l48==1){ figura_dib[5]=0x7D; } else{ figura_dib[5]=0x7C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x7B; } else{ figura_dib[5]=0x7A; } } else if(l48==1){ figura_dib[5]=0x79; } else{ figura_dib[5]=0x78; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x77; } else{ figura_dib[5]=0x76; } } else if(l48==1){ figura_dib[5]=0x75; } else{ figura_dib[5]=0x74; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x73; } else{ figura_dib[5]=0x72; } } else if(l48==1){ figura_dib[5]=0x71; } else{ figura_dib[5]=0x70; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x6F; } else{ figura_dib[5]=0x6E; } } else if(l48==1){ figura_dib[5]=0x6D; } else{ figura_dib[5]=0x6C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x6B; } else{ figura_dib[5]=0x6A; } } else if(l48==1){ figura_dib[5]=0x69; } else{ figura_dib[5]=0x68; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x67; } else{ figura_dib[5]=0x66; } } else if(l48==1){ figura_dib[5]=0x65; } else{ figura_dib[5]=0x64; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x63; } else{ figura_dib[5]=0x62; } } else if(l48==1){ figura_dib[5]=0x61; } else{ figura_dib[5]=0x60; } } else if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x5F; } else{ figura_dib[5]=0x5E; } } else if(l48==1){ figura_dib[5]=0x5D; } else{ figura_dib[5]=0x5C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x5B; } else{ figura_dib[5]=0x5A; } } else if(l48==1){ figura_dib[5]=0x59; } else{ figura_dib[5]=0x58; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x57; } else{ figura_dib[5]=0x56; } } else if(l48==1){ figura_dib[5]=0x55; } else{ figura_dib[5]=0x54; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x53; } else{ figura_dib[5]=0x52; } } else if(l48==1){ figura_dib[5]=0x51; } else{ figura_dib[5]=0x50; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x4F; } else{ figura_dib[5]=0x4E; } } else if(l48==1){ figura_dib[5]=0x4D; } else{ figura_dib[5]=0x4C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x4B; } else{ figura_dib[5]=0x4A; } } else if(l48==1){ figura_dib[5]=0x49; } else{ figura_dib[5]=0x48; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x47; } else{ figura_dib[5]=0x46; } } else if(l48==1){ figura_dib[5]=0x45; } else{ figura_dib[5]=0x44; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x43; } else{ figura_dib[5]=0x42; } } else if(l48==1){ figura_dib[5]=0x41; } else{ figura_dib[5]=0x40; } } else if(l43==1){ if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x3F; } else{ figura_dib[5]=0x3E; } } else if(l48==1){ figura_dib[5]=0x3D; } else{ figura_dib[5]=0x3C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x3B; } else{ figura_dib[5]=0x3A; } } else if(l48==1){ figura_dib[5]=0x39; } else{ figura_dib[5]=0x38; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x37; } else{ figura_dib[5]=0x36; } } else if(l48==1){ figura_dib[5]=0x35; } else{ figura_dib[5]=0x34; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x33; } else{ figura_dib[5]=0x32; } } else if(l48==1){ figura_dib[5]=0x31; } else{ figura_dib[5]=0x30; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x2F; } else{ figura_dib[5]=0x2E; } } else if(l48==1){ figura_dib[5]=0x2D; } else{ figura_dib[5]=0x2C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x2B; } else{ figura_dib[5]=0x2A; } } else if(l48==1){ figura_dib[5]=0x29; } else{ figura_dib[5]=0x28; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x27; } else{ figura_dib[5]=0x26; } } else if(l48==1){ figura_dib[5]=0x25; } else{ figura_dib[5]=0x24; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x23; } else{ figura_dib[5]=0x22; } } else if(l48==1){ figura_dib[5]=0x21; } else{ figura_dib[5]=0x20; } } else if(l44==1){ if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x1F; } else{ figura_dib[5]=0x1E; } } else if(l48==1){ figura_dib[5]=0x1D; } else{ figura_dib[5]=0x1C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x1B; } else{ figura_dib[5]=0x1A; } } else if(l48==1){ figura_dib[5]=0x19; } else{ figura_dib[5]=0x18; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x17; } else{ figura_dib[5]=0x16; } } else if(l48==1){ figura_dib[5]=0x15; } else{ figura_dib[5]=0x14; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x13; } else{ figura_dib[5]=0x12; } } else if(l48==1){ figura_dib[5]=0x11; } else{ figura_dib[5]=0x10; } } else if(l45==1){ if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x0F; } else{ figura_dib[5]=0x0E; } } else if(l48==1){ figura_dib[5]=0x0D; } else{ figura_dib[5]=0x0C; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x0B; } else{ figura_dib[5]=0x0A; } } else if(l48==1){ figura_dib[5]=0x09; } else{ figura_dib[5]=0x08; } } else if(l46==1){ if(l47==1){ if(l48==1){ figura_dib[5]=0x07; } else{ figura_dib[5]=0x06; } } else if(l48==1){ figura_dib[5]=0x05; } else{ figura_dib[5]=0x04; } } else if(l47==1){ if(l48==1){ figura_dib[5]=0x03; } else{ figura_dib[5]=0x02; } } else if(l48==1){ figura_dib[5]=0x01; } else{ figura_dib[5]=0x00; } ///// //// /// // //fila 7 // /// //// ///// if(l49==1){ if(l50==1){ if(l51==1){ if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xFF; } else{ figura_dib[6]=0xFE; } } else if(l56==1){ figura_dib[6]=0xFD; } else{ figura_dib[6]=0xFC; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xFB; } else{ figura_dib[6]=0xFA; } } else if(l56==1){ figura_dib[6]=0xF9; } else{ figura_dib[6]=0xF8; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xF7; } else{ figura_dib[6]=0xF6; } } else if(l56==1){ figura_dib[6]=0xF5; } else{ figura_dib[6]=0xF4; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xF3; } else{ figura_dib[6]=0xF2; } } else if(l56==1){ figura_dib[6]=0xF1; } else{ figura_dib[6]=0xF0; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xEF; } else{ figura_dib[6]=0xEE; } } else if(l56==1){ figura_dib[6]=0xED; } else{ figura_dib[6]=0xEC; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xEB; } else{ figura_dib[6]=0xEA; } } else if(l56==1){ figura_dib[6]=0xE9; } else{ figura_dib[6]=0xE8; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xE7; } else{ figura_dib[6]=0xE6; } } else if(l56==1){ figura_dib[6]=0xE5; } else{ figura_dib[6]=0xE4; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xE3; } else{ figura_dib[6]=0xE2; } } else if(l56==1){ figura_dib[6]=0xE1; } else{ figura_dib[6]=0xE0; } } else if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xDF; } else{ figura_dib[6]=0xDE; } } else if(l56==1){ figura_dib[6]=0xDD; } else{ figura_dib[6]=0xDC; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xDB; } else{ figura_dib[6]=0xDA; } } else if(l56==1){ figura_dib[6]=0xD9; } else{ figura_dib[6]=0xD8; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xD7; } else{ figura_dib[6]=0xD6; } } else if(l56==1){ figura_dib[6]=0xD5; } else{ figura_dib[6]=0xD4; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xD3; } else{ figura_dib[6]=0xD2; } } else if(l56==1){ figura_dib[6]=0xD1; } else{ figura_dib[6]=0xD0; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xCF; } else{ figura_dib[6]=0xCE; } } else if(l56==1){ figura_dib[6]=0xCD; } else{ figura_dib[6]=0xCC; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xCB; } else{ figura_dib[6]=0xCA; } } else if(l56==1){ figura_dib[6]=0xC9; } else{ figura_dib[6]=0xC8; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xC7; } else{ figura_dib[6]=0xC6; } } else if(l56==1){ figura_dib[6]=0xC5; } else{ figura_dib[6]=0xC4; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xC3; } else{ figura_dib[6]=0xC2; } } else if(l56==1){ figura_dib[6]=0xC1; } else{ figura_dib[6]=0xC0; } } else if(l51==1){ if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xBF; } else{ figura_dib[6]=0xBE; } } else if(l56==1){ figura_dib[6]=0xBD; } else{ figura_dib[6]=0xBC; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xBB; } else{ figura_dib[6]=0xBA; } } else if(l56==1){ figura_dib[6]=0xB9; } else{ figura_dib[6]=0xB8; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xB7; } else{ figura_dib[6]=0xB6; } } else if(l56==1){ figura_dib[6]=0xB5; } else{ figura_dib[6]=0xB4; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xB3; } else{ figura_dib[6]=0xB2; } } else if(l56==1){ figura_dib[6]=0xB1; } else{ figura_dib[6]=0xB0; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xAF; } else{ figura_dib[6]=0xAE; } } else if(l56==1){ figura_dib[6]=0xAD; } else{ figura_dib[6]=0xAC; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xAB; } else{ figura_dib[6]=0xAA; } } else if(l56==1){ figura_dib[6]=0xA9; } else{ figura_dib[6]=0xA8; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0xA7; } else{ figura_dib[6]=0xA6; } } else if(l56==1){ figura_dib[6]=0xA5; } else{ figura_dib[6]=0xA4; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0xA3; } else{ figura_dib[6]=0xA2; } } else if(l56==1){ figura_dib[6]=0xA1; } else{ figura_dib[6]=0xA0; } } else if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x9F; } else{ figura_dib[6]=0x9E; } } else if(l56==1){ figura_dib[6]=0x9D; } else{ figura_dib[6]=0x9C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x9B; } else{ figura_dib[6]=0x9A; } } else if(l56==1){ figura_dib[6]=0x99; } else{ figura_dib[6]=0x98; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x97; } else{ figura_dib[6]=0x96; } } else if(l56==1){ figura_dib[6]=0x95; } else{ figura_dib[6]=0x94; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x93; } else{ figura_dib[6]=0x92; } } else if(l56==1){ figura_dib[6]=0x91; } else{ figura_dib[6]=0x90; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x8F; } else{ figura_dib[6]=0x8E; } } else if(l56==1){ figura_dib[6]=0x8D; } else{ figura_dib[6]=0x8C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x8B; } else{ figura_dib[6]=0x8A; } } else if(l56==1){ figura_dib[6]=0x89; } else{ figura_dib[6]=0x88; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x87; } else{ figura_dib[6]=0x86; } } else if(l56==1){ figura_dib[6]=0x85; } else{ figura_dib[6]=0x84; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x83; } else{ figura_dib[6]=0x82; } } else if(l56==1){ figura_dib[6]=0x81; } else{ figura_dib[6]=0x80; } } else if(l50==1){ if(l51==1){ if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x7F; } else{ figura_dib[6]=0x7E; } } else if(l56==1){ figura_dib[6]=0x7D; } else{ figura_dib[6]=0x7C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x7B; } else{ figura_dib[6]=0x7A; } } else if(l56==1){ figura_dib[6]=0x79; } else{ figura_dib[6]=0x78; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x77; } else{ figura_dib[6]=0x76; } } else if(l56==1){ figura_dib[6]=0x75; } else{ figura_dib[6]=0x74; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x73; } else{ figura_dib[6]=0x72; } } else if(l56==1){ figura_dib[6]=0x71; } else{ figura_dib[6]=0x70; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x6F; } else{ figura_dib[6]=0x6E; } } else if(l56==1){ figura_dib[6]=0x6D; } else{ figura_dib[6]=0x6C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x6B; } else{ figura_dib[6]=0x6A; } } else if(l56==1){ figura_dib[6]=0x69; } else{ figura_dib[6]=0x68; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x67; } else{ figura_dib[6]=0x66; } } else if(l56==1){ figura_dib[6]=0x65; } else{ figura_dib[6]=0x64; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x63; } else{ figura_dib[6]=0x62; } } else if(l56==1){ figura_dib[6]=0x61; } else{ figura_dib[6]=0x60; } } else if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x5F; } else{ figura_dib[6]=0x5E; } } else if(l56==1){ figura_dib[6]=0x5D; } else{ figura_dib[6]=0x5C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x5B; } else{ figura_dib[6]=0x5A; } } else if(l56==1){ figura_dib[6]=0x59; } else{ figura_dib[6]=0x58; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x57; } else{ figura_dib[6]=0x56; } } else if(l56==1){ figura_dib[6]=0x55; } else{ figura_dib[6]=0x54; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x53; } else{ figura_dib[6]=0x52; } } else if(l56==1){ figura_dib[6]=0x51; } else{ figura_dib[6]=0x50; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x4F; } else{ figura_dib[6]=0x4E; } } else if(l56==1){ figura_dib[6]=0x4D; } else{ figura_dib[6]=0x4C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x4B; } else{ figura_dib[6]=0x4A; } } else if(l56==1){ figura_dib[6]=0x49; } else{ figura_dib[6]=0x48; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x47; } else{ figura_dib[6]=0x46; } } else if(l56==1){ figura_dib[6]=0x45; } else{ figura_dib[6]=0x44; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x43; } else{ figura_dib[6]=0x42; } } else if(l56==1){ figura_dib[6]=0x41; } else{ figura_dib[6]=0x40; } } else if(l51==1){ if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x3F; } else{ figura_dib[6]=0x3E; } } else if(l56==1){ figura_dib[6]=0x3D; } else{ figura_dib[6]=0x3C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x3B; } else{ figura_dib[6]=0x3A; } } else if(l56==1){ figura_dib[6]=0x39; } else{ figura_dib[6]=0x38; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x37; } else{ figura_dib[6]=0x36; } } else if(l56==1){ figura_dib[6]=0x35; } else{ figura_dib[6]=0x34; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x33; } else{ figura_dib[6]=0x32; } } else if(l56==1){ figura_dib[6]=0x31; } else{ figura_dib[6]=0x30; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x2F; } else{ figura_dib[6]=0x2E; } } else if(l56==1){ figura_dib[6]=0x2D; } else{ figura_dib[6]=0x2C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x2B; } else{ figura_dib[6]=0x2A; } } else if(l56==1){ figura_dib[6]=0x29; } else{ figura_dib[6]=0x28; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x27; } else{ figura_dib[6]=0x26; } } else if(l56==1){ figura_dib[6]=0x25; } else{ figura_dib[6]=0x24; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x23; } else{ figura_dib[6]=0x22; } } else if(l56==1){ figura_dib[6]=0x21; } else{ figura_dib[6]=0x20; } } else if(l52==1){ if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x1F; } else{ figura_dib[6]=0x1E; } } else if(l56==1){ figura_dib[6]=0x1D; } else{ figura_dib[6]=0x1C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x1B; } else{ figura_dib[6]=0x1A; } } else if(l56==1){ figura_dib[6]=0x19; } else{ figura_dib[6]=0x18; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x17; } else{ figura_dib[6]=0x16; } } else if(l56==1){ figura_dib[6]=0x15; } else{ figura_dib[6]=0x14; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x13; } else{ figura_dib[6]=0x12; } } else if(l56==1){ figura_dib[6]=0x11; } else{ figura_dib[6]=0x10; } } else if(l53==1){ if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x0F; } else{ figura_dib[6]=0x0E; } } else if(l56==1){ figura_dib[6]=0x0D; } else{ figura_dib[6]=0x0C; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x0B; } else{ figura_dib[6]=0x0A; } } else if(l56==1){ figura_dib[6]=0x09; } else{ figura_dib[6]=0x08; } } else if(l54==1){ if(l55==1){ if(l56==1){ figura_dib[6]=0x07; } else{ figura_dib[6]=0x06; } } else if(l56==1){ figura_dib[6]=0x05; } else{ figura_dib[6]=0x04; } } else if(l55==1){ if(l56==1){ figura_dib[6]=0x03; } else{ figura_dib[6]=0x02; } } else if(l56==1){ figura_dib[6]=0x01; } else{ figura_dib[6]=0x00; } ///// //// /// // //fila 8 // /// //// ///// if(l57==1){ if(l58==1){ if(l59==1){ if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xFF; } else{ figura_dib[7]=0xFE; } } else if(l64==1){ figura_dib[7]=0xFD; } else{ figura_dib[7]=0xFC; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xFB; } else{ figura_dib[7]=0xFA; } } else if(l64==1){ figura_dib[7]=0xF9; } else{ figura_dib[7]=0xF8; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xF7; } else{ figura_dib[7]=0xF6; } } else if(l64==1){ figura_dib[7]=0xF5; } else{ figura_dib[7]=0xF4; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xF3; } else{ figura_dib[7]=0xF2; } } else if(l64==1){ figura_dib[7]=0xF1; } else{ figura_dib[7]=0xF0; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xEF; } else{ figura_dib[7]=0xEE; } } else if(l64==1){ figura_dib[7]=0xED; } else{ figura_dib[7]=0xEC; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xEB; } else{ figura_dib[7]=0xEA; } } else if(l64==1){ figura_dib[7]=0xE9; } else{ figura_dib[7]=0xE8; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xE7; } else{ figura_dib[7]=0xE6; } } else if(l64==1){ figura_dib[7]=0xE5; } else{ figura_dib[7]=0xE4; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xE3; } else{ figura_dib[7]=0xE2; } } else if(l64==1){ figura_dib[7]=0xE1; } else{ figura_dib[7]=0xE0; } } else if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xDF; } else{ figura_dib[7]=0xDE; } } else if(l64==1){ figura_dib[7]=0xDD; } else{ figura_dib[7]=0xDC; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xDB; } else{ figura_dib[7]=0xDA; } } else if(l64==1){ figura_dib[7]=0xD9; } else{ figura_dib[7]=0xD8; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xD7; } else{ figura_dib[7]=0xD6; } } else if(l64==1){ figura_dib[7]=0xD5; } else{ figura_dib[7]=0xD4; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xD3; } else{ figura_dib[7]=0xD2; } } else if(l64==1){ figura_dib[7]=0xD1; } else{ figura_dib[7]=0xD0; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xCF; } else{ figura_dib[7]=0xCE; } } else if(l64==1){ figura_dib[7]=0xCD; } else{ figura_dib[7]=0xCC; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xCB; } else{ figura_dib[7]=0xCA; } } else if(l64==1){ figura_dib[7]=0xC9; } else{ figura_dib[7]=0xC8; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xC7; } else{ figura_dib[7]=0xC6; } } else if(l64==1){ figura_dib[7]=0xC5; } else{ figura_dib[7]=0xC4; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xC3; } else{ figura_dib[7]=0xC2; } } else if(l64==1){ figura_dib[7]=0xC1; } else{ figura_dib[7]=0xC0; } } else if(l59==1){ if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xBF; } else{ figura_dib[7]=0xBE; } } else if(l64==1){ figura_dib[7]=0xBD; } else{ figura_dib[7]=0xBC; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xBB; } else{ figura_dib[7]=0xBA; } } else if(l64==1){ figura_dib[7]=0xB9; } else{ figura_dib[7]=0xB8; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xB7; } else{ figura_dib[7]=0xB6; } } else if(l64==1){ figura_dib[7]=0xB5; } else{ figura_dib[7]=0xB4; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xB3; } else{ figura_dib[7]=0xB2; } } else if(l64==1){ figura_dib[7]=0xB1; } else{ figura_dib[7]=0xB0; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xAF; } else{ figura_dib[7]=0xAE; } } else if(l64==1){ figura_dib[7]=0xAD; } else{ figura_dib[7]=0xAC; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xAB; } else{ figura_dib[7]=0xAA; } } else if(l64==1){ figura_dib[7]=0xA9; } else{ figura_dib[7]=0xA8; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0xA7; } else{ figura_dib[7]=0xA6; } } else if(l64==1){ figura_dib[7]=0xA5; } else{ figura_dib[7]=0xA4; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0xA3; } else{ figura_dib[7]=0xA2; } } else if(l64==1){ figura_dib[7]=0xA1; } else{ figura_dib[7]=0xA0; } } else if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x9F; } else{ figura_dib[7]=0x9E; } } else if(l64==1){ figura_dib[7]=0x9D; } else{ figura_dib[7]=0x9C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x9B; } else{ figura_dib[7]=0x9A; } } else if(l64==1){ figura_dib[7]=0x99; } else{ figura_dib[7]=0x98; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x97; } else{ figura_dib[7]=0x96; } } else if(l64==1){ figura_dib[7]=0x95; } else{ figura_dib[7]=0x94; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x93; } else{ figura_dib[7]=0x92; } } else if(l64==1){ figura_dib[7]=0x91; } else{ figura_dib[7]=0x90; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x8F; } else{ figura_dib[7]=0x8E; } } else if(l64==1){ figura_dib[7]=0x8D; } else{ figura_dib[7]=0x8C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x8B; } else{ figura_dib[7]=0x8A; } } else if(l64==1){ figura_dib[7]=0x89; } else{ figura_dib[7]=0x88; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x87; } else{ figura_dib[7]=0x86; } } else if(l64==1){ figura_dib[7]=0x85; } else{ figura_dib[7]=0x84; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x83; } else{ figura_dib[7]=0x82; } } else if(l64==1){ figura_dib[7]=0x81; } else{ figura_dib[7]=0x80; } } else if(l58==1){ if(l59==1){ if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x7F; } else{ figura_dib[7]=0x7E; } } else if(l64==1){ figura_dib[7]=0x7D; } else{ figura_dib[7]=0x7C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x7B; } else{ figura_dib[7]=0x7A; } } else if(l64==1){ figura_dib[7]=0x79; } else{ figura_dib[7]=0x78; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x77; } else{ figura_dib[7]=0x76; } } else if(l64==1){ figura_dib[7]=0x75; } else{ figura_dib[7]=0x74; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x73; } else{ figura_dib[7]=0x72; } } else if(l64==1){ figura_dib[7]=0x71; } else{ figura_dib[7]=0x70; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x6F; } else{ figura_dib[7]=0x6E; } } else if(l64==1){ figura_dib[7]=0x6D; } else{ figura_dib[7]=0x6C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x6B; } else{ figura_dib[7]=0x6A; } } else if(l64==1){ figura_dib[7]=0x69; } else{ figura_dib[7]=0x68; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x67; } else{ figura_dib[7]=0x66; } } else if(l64==1){ figura_dib[7]=0x65; } else{ figura_dib[7]=0x64; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x63; } else{ figura_dib[7]=0x62; } } else if(l64==1){ figura_dib[7]=0x61; } else{ figura_dib[7]=0x60; } } else if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x5F; } else{ figura_dib[7]=0x5E; } } else if(l64==1){ figura_dib[7]=0x5D; } else{ figura_dib[7]=0x5C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x5B; } else{ figura_dib[7]=0x5A; } } else if(l64==1){ figura_dib[7]=0x59; } else{ figura_dib[7]=0x58; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x57; } else{ figura_dib[7]=0x56; } } else if(l64==1){ figura_dib[7]=0x55; } else{ figura_dib[7]=0x54; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x53; } else{ figura_dib[7]=0x52; } } else if(l64==1){ figura_dib[7]=0x51; } else{ figura_dib[7]=0x50; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x4F; } else{ figura_dib[7]=0x4E; } } else if(l64==1){ figura_dib[7]=0x4D; } else{ figura_dib[7]=0x4C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x4B; } else{ figura_dib[7]=0x4A; } } else if(l64==1){ figura_dib[7]=0x49; } else{ figura_dib[7]=0x48; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x47; } else{ figura_dib[7]=0x46; } } else if(l64==1){ figura_dib[7]=0x45; } else{ figura_dib[7]=0x44; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x43; } else{ figura_dib[7]=0x42; } } else if(l64==1){ figura_dib[7]=0x41; } else{ figura_dib[7]=0x40; } } else if(l59==1){ if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x3F; } else{ figura_dib[7]=0x3E; } } else if(l64==1){ figura_dib[7]=0x3D; } else{ figura_dib[7]=0x3C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x3B; } else{ figura_dib[7]=0x3A; } } else if(l64==1){ figura_dib[7]=0x39; } else{ figura_dib[7]=0x38; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x37; } else{ figura_dib[7]=0x36; } } else if(l64==1){ figura_dib[7]=0x35; } else{ figura_dib[7]=0x34; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x33; } else{ figura_dib[7]=0x32; } } else if(l64==1){ figura_dib[7]=0x31; } else{ figura_dib[7]=0x30; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x2F; } else{ figura_dib[7]=0x2E; } } else if(l64==1){ figura_dib[7]=0x2D; } else{ figura_dib[7]=0x2C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x2B; } else{ figura_dib[7]=0x2A; } } else if(l64==1){ figura_dib[7]=0x29; } else{ figura_dib[7]=0x28; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x27; } else{ figura_dib[7]=0x26; } } else if(l64==1){ figura_dib[7]=0x25; } else{ figura_dib[7]=0x24; } } else if(l63==1){ if(l62==1){ figura_dib[7]=0x23; } else{ figura_dib[7]=0x22; } } else if(l64==1){ figura_dib[7]=0x21; } else{ figura_dib[7]=0x20; } } else if(l60==1){ if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x1F; } else{ figura_dib[7]=0x1E; } } else if(l64==1){ figura_dib[7]=0x1D; } else{ figura_dib[7]=0x1C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x1B; } else{ figura_dib[7]=0x1A; } } else if(l64==1){ figura_dib[7]=0x19; } else{ figura_dib[7]=0x18; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x17; } else{ figura_dib[7]=0x16; } } else if(l64==1){ figura_dib[7]=0x15; } else{ figura_dib[7]=0x14; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x13; } else{ figura_dib[7]=0x12; } } else if(l64==1){ figura_dib[7]=0x11; } else{ figura_dib[7]=0x10; } } else if(l61==1){ if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x0F; } else{ figura_dib[7]=0x0E; } } else if(l64==1){ figura_dib[7]=0x0D; } else{ figura_dib[7]=0x0C; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x0B; } else{ figura_dib[7]=0x0A; } } else if(l64==1){ figura_dib[7]=0x09; } else{ figura_dib[7]=0x08; } } else if(l62==1){ if(l63==1){ if(l64==1){ figura_dib[7]=0x07; } else{ figura_dib[7]=0x06; } } else if(l64==1){ figura_dib[7]=0x05; } else{ figura_dib[7]=0x04; } } else if(l63==1){ if(l64==1){ figura_dib[7]=0x03; } else{ figura_dib[7]=0x02; } } else if(l64==1){ figura_dib[7]=0x01; } else{ figura_dib[7]=0x00; } ///// //// /// // /////////////// switch(cambio_im){ case 1: row=cuadrado[counter]; break; case 2: row=triangulo[counter]; break; case 3: row=rombo[counter]; break; } //////// switch(im_escogida){ case 1: row=cuadrado[counter]; if(cuadrado[0]==figura_dib[0] && cuadrado[1]==figura_dib[1] && cuadrado[2]==figura_dib[2] && cuadrado[3]==figura_dib[3] && cuadrado[4]==figura_dib[4] && cuadrado[5]==figura_dib[5] && cuadrado[6]==figura_dib[6] && cuadrado[7]==figura_dib[7]){ im_escogida=4; } break; case 2: row=triangulo[counter]; if(triangulo[0]==figura_dib[0] && triangulo[1]==figura_dib[1] && triangulo[2]==figura_dib[2] && triangulo[3]==figura_dib[3] && triangulo[4]==figura_dib[4] && triangulo[5]==figura_dib[5] && triangulo[6]==figura_dib[6] && triangulo[7]==figura_dib[7]){ im_escogida=4; } break; case 3: row=rombo[counter]; if(rombo[0]==figura_dib[0] && rombo[1]==figura_dib[1] && rombo[2]==figura_dib[2] && rombo[3]==figura_dib[3] && rombo[4]==figura_dib[4] && rombo[5]==figura_dib[5] && rombo[6]==figura_dib[6] && rombo[7]==figura_dib[7]){ im_escogida=4; } break; case 4: row=feliz[counter]; break; } ///////// if(perder==1){ row=triste[counter]; } ///////// row_2= figura_dib[counter]; switch (counter){ case 0: colum=0x01; colum_2=0x01; break; case 1: colum=0x02; colum_2=0x02; break; case 2: colum=0x04; colum_2=0x04; break; case 3: colum=0x08; colum_2=0x08; break; case 4: colum=0x10; colum_2=0x10; break; case 5: colum=0x20; colum_2=0x20; break; case 6: colum=0x40; colum_2=0x40; break; case 7: colum=0x80; colum_2=0x80; break; } counter++; if(counter==8)counter=0; } int main() { FILE *wave_file; // wave_file=fopen("/sd/pista1.wav","r"); // waver.play(wave_file); // fclose(wave_file); columna.attach(&visualiza,0.00208333333333333333333333333333); imagen.attach(&cambio,0.70); pc.baud(9600); pc.attach(&receivedByte); lcd.cls(); //Limpia el LCD lcd.locate(0, 0); //Posiciona en columna 2, fila 0) lcd.printf("Tiempo de juego"); //Imprime en LCD "Reloj digital" while(true) { reloj(); if(im_escogida==1||im_escogida==2||im_escogida==3){ seg1++; //Inician el primer contador de unidades de segundo wait(1); //Genera tiempo de un segundo if (seg1==10){ seg2++;//Contador décimas de segundo seg1=0; if (seg2==6){ min1++;//Contador unidades de minuto seg2=0; if (min1==3){ perder=1; pc.printf("/\r\n"); wait(0.1); // wait(20); wave_file=fopen("/sd/perdio.wav","r"); waver.play(wave_file); fclose(wave_file); // perder=0; cambio_im=1; im_escogida=0; } } } } if(im_escogida==0){ seg1=0; seg2=0; min1=0; perder=0; // wave_file=fopen("/sd/pista1.wav","r"); waver.play(wave_file); fclose(wave_file); // } if(im_escogida==4){ pc.printf("*\r\n"); wait(0.1); // wait(20); wave_file=fopen("/sd/gano.wav","r"); waver.play(wave_file); fclose(wave_file); // cambio_im=1; im_escogida=0; } } }