Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // vector de las filas
- const int row[8] = {
- 2, 7, 19, 5, 13, 18, 12, 16
- //este orden se debe al modelo de matriz
- };
- // vector de las columnas
- const int col[8] = {
- 6, 11, 10, 3, 17, 4, 8, 9
- //este orden se debe al modelo de matriz
- };
- // matriz de pixeles
- int pixels[8][8];
- // posicion del cursor
- int x = 5;
- int y = 5;
- //Para el serial
- String palabra="9";
- int l=palabra.length();
- //**********************************************************************//
- //--------------------DEFINICION DE LOS NUMEROS-------------------------//
- //**********************************************************************//
- int cero[8][8]=
- {
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1, 0, 0, 1, 1, 0 ,0, 1},
- { 1, 0, 0, 1, 0, 0 ,0, 1},
- { 1, 0 ,0, 0, 0, 0, 0, 1},
- { 1, 0 ,0, 0, 1, 0 ,0, 1},
- { 1, 0, 0, 1, 1, 0, 0, 1},
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- int uno[8][8]=
- {
- { 1, 1, 1, 0, 0, 1, 1, 1},
- { 1, 1, 0, 0, 0, 1 ,1, 1},
- { 1, 0, 0, 0, 0, 1 ,1, 1},
- { 1, 1 ,1, 0, 0, 1, 1, 1},
- { 1, 1 ,1, 0, 0, 1 ,1, 1},
- { 1, 1, 1, 0, 0, 1, 1, 1},
- { 1, 0, 0, 0, 0, 0, 0, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- int dos[8][8]=
- {
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1, 0, 0, 1, 1, 0 ,0, 1},
- { 1, 1, 1, 1, 1, 0 ,0, 1},
- { 1, 1 ,1, 0, 0, 0, 1, 1},
- { 1, 1 ,0, 0, 1, 1 ,1, 1},
- { 1, 0, 0, 1, 1, 1, 1, 1},
- { 1, 0, 0, 0, 0, 0, 0, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- int tres[8][8]=
- {
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1, 0, 0, 1, 1, 0, 0, 1},
- { 1, 1, 1, 1, 1, 0, 0, 1},
- { 1, 1 ,1, 0, 0, 0, 1, 1},
- { 1, 1 ,1, 1, 1, 0, 0, 1},
- { 1, 0, 0, 1, 1, 0, 0, 1},
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- int cuatro[8][8]=
- {
- {1, 1, 1, 1, 0, 0, 1, 1},
- {1, 1, 1, 0, 0, 0, 1, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 0, 0 ,1, 0, 0, 1, 1},
- {1, 0, 0 ,0, 0, 0, 0, 1},
- {1, 1, 1, 1, 0, 0, 1, 1},
- {1, 1, 1, 1, 0, 0, 1, 1},
- {1, 1 ,1, 1, 1, 1, 1, 1}
- };
- int cinco[8][8]=
- {
- { 1, 0, 0, 0, 0, 0, 0, 1},
- { 1, 0, 0, 1, 1, 1 ,1, 1},
- { 1, 0, 0, 0, 0, 0 ,1, 1},
- { 1, 1, 1, 1, 1, 0, 0, 1},
- { 1, 1, 1, 1, 1, 0 ,0, 1},
- { 1, 0, 0, 1, 1, 0, 0, 1},
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- int seis[8][8]=
- {
- { 1, 1, 1, 0, 0, 0, 1, 1},
- { 1, 1, 0, 0, 1, 1 ,1, 1},
- { 1, 0, 0, 1, 1, 1 ,1, 1},
- { 1, 0 ,0, 0, 0, 0, 1, 1},
- { 1, 0 ,0, 1, 1, 0 ,0, 1},
- { 1, 0, 0, 1, 1, 0, 0, 1},
- { 1, 1, 0, 0, 0, 0, 1, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- int siete[8][8] =
- {
- {1, 0, 0, 0, 0, 0, 0, 1},
- {1, 1, 1, 1, 1, 0, 0, 1},
- {1, 1, 1, 1, 0, 0, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 0, 0, 1, 1, 1, 1},
- {1, 1, 0, 0, 1, 1, 1, 1},
- {1, 1, 0, 0, 1, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- int ocho[8][8] =
- {
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- int nueve[8][8] =
- {
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 0, 0, 0, 0, 0, 1},
- {1, 1, 1, 1, 1, 0, 0, 1},
- {1, 1, 1, 1, 0, 0, 1, 1},
- {1, 1, 0, 0, 0, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- //**********************************************************************//
- //**********************************************************************//
- //--------------------DEFINICION DE LAS LETRAS--------------------------//
- //**********************************************************************//
- //int A[8][8]=
- //{
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int B[8][8]=
- //{
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int C[8][8]=
- //{
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //int D[8][8]=
- //{
- // {1, 0, 0, 0, 0, 1, 1, 1},
- // {1, 0, 0, 1, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 0, 0, 1, 1},
- // {1, 0, 0, 0, 0, 1, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int E[8][8]=
- //{
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int F[8][8]=
- //{
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int G[8][8]=
- //{
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 1, 0, 0, 0, 0, 0, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int H[8][8]=
- //{
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int I[8][8]=
- //{
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 1, 1, 0, 0, 1, 1, 1},
- // {1, 1, 1, 0, 0, 1, 1, 1},
- // {1, 1, 1, 0, 0, 1, 1, 1},
- // {1, 1, 1, 0, 0, 1, 1, 1},
- // {1, 1, 1, 0, 0, 1, 1, 1},
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int J[8][8]=
- //{
- // {1, 1, 1, 0, 0, 0, 0, 1},
- // {1, 1, 1, 1, 0, 0, 1, 1},
- // {1, 1, 1, 1, 0, 0, 1, 1},
- // {1, 1, 1, 1, 0, 0, 1, 1},
- // {1, 0, 0, 1, 0, 0, 1, 1},
- // {1, 0, 0, 1, 0, 0, 1, 1},
- // {1, 1, 0, 0, 0, 1, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int K[8][8]=
- //{
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 0, 0, 1, 1},
- // {1, 0, 0, 0, 0, 1, 1, 1},
- // {1, 0, 0, 0, 1, 1, 1, 1},
- // {1, 0, 0, 0, 0, 1, 1, 1},
- // {1, 0, 0, 1, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1}
- //};
- //
- //int L[8][8]=
- //{
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1}
- //};
- //
- //int M[8][8]=
- //{
- // {1, 0, 0, 1, 0, 0, 0, 1},
- // {0, 0, 0, 0, 0, 0, 0, 0},
- // {0, 0, 0, 0, 0, 0, 0, 0},
- // {0, 0, 1, 0, 0, 1, 0, 0},
- // {0, 0, 1, 0, 0, 1, 0, 0},
- // {0, 0, 1, 1, 1, 1, 0, 0},
- // {0, 0, 1, 1, 1, 1, 0, 0},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int N[8][8]=
- //{
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 0, 0, 1, 0, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int O[8][8]=
- //{
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int P[8][8]=
- //{
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 0, 0, 1, 1, 1, 1, 1},
- // {1, 1, 1, 1, 1, 1, 1, 1}
- //};
- //
- //int Q[8][8]=
- //{
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 1, 1, 0, 0, 1},
- // {1, 0, 0, 0, 0, 0, 0, 1},
- // {1, 1, 0, 0, 0, 0, 1, 1},
- // {1, 1, 1, 1, 1, 0, 0, 1}
- //};
- //
- int R[8][8]=
- {
- {1, 0, 0, 0, 0, 0, 1, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 0, 0, 0, 1, 1},
- {1, 0, 0, 0, 0, 1, 1, 1},
- {1, 0, 0, 1, 0, 0, 1, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- int S[8][8]=
- {
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 1, 1, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 1, 1, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- intTS[8][8]=
- {
- {1, 0, 0, 0, 0, 0, 0, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- int U[8][8]=
- {
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- int V[8][8]=
- {
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 0, 0, 0, 0, 1, 1},
- {1, 1, 1, 0, 0, 1, 1, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- int W[8][8]=
- {
- {0, 0, 1, 1, 1, 1, 0, 0},
- {0, 0, 1, 1, 1, 1, 0, 0},
- {0, 0, 1, 1, 1, 1, 0, 0},
- {0, 0, 1, 0, 0, 1, 0, 0},
- {0, 0, 1, 0, 0, 1, 0, 0},
- {0, 0, 0, 0, 0, 0, 0, 0},
- {1, 0, 0, 1, 1, 0, 0, 1},
- {1, 1, 1, 1, 1, 1, 1, 1}
- };
- //**********************************************************************//
- //-------------------------FUNCION SETUP--------------------------------//
- //**********************************************************************//
- void setup() {
- Serial.begin(9600);
- // Inicializar los PIN como salidas
- // Se van iterando los pin
- for (int thisPin = 0; thisPin < 8; thisPin++)
- {
- pinMode(col[thisPin], OUTPUT);
- pinMode(row[thisPin], OUTPUT);
- // poner los pins de las columnas HIGH para asegurar
- //que los LEDS estan apagados
- digitalWrite(col[thisPin], HIGH);
- }
- // Inicializar la matriz de pixeles
- for (int x = 0; x < 8; x++) {
- for (int y = 0; y < 8; y++) {
- pixels[x][y] = HIGH;
- }
- }
- }//fin del setup
- //**********************************************************************//
- //**********************************************************************//
- //--------------------------FUNCION LOOP--------------------------------//
- //**********************************************************************//
- void loop() {
- //while(Serial.available()>0)
- //{
- // for (int m=0; m<30; m++)
- // {
- // palabra[m]=Serial.read();
- // }
- //}
- for (int n=0; n<l; n++)
- {
- long t=millis();
- //char letra = palabra[n];
- //Serial.print("antes de numeros");Serial.println(letra);
- // Serial.println(palabra[n]);
- numeros(palabra[n]);
- //Serial.print("despues de numeros");Serial.println(letra);
- while(millis()<t+2000)
- refreshScreen();
- //Serial.print("despues de refreshscreen");//Serial.println(letra);
- }
- }// fin del loop
- //**********************************************************************//
- //**********************************************************************//
- //----------------FUNCION REFRESHSCREEN--------------------------------//
- //**********************************************************************//
- void refreshScreen() {
- //Iterar a traves de las filas
- for (int thisRow = 0; thisRow < 8; thisRow++)
- {
- //Poner el pin de la fila HIGH
- digitalWrite(row[thisRow], HIGH);
- //Iterar a traves de las columnas
- for (int thisCol = 0; thisCol < 8; thisCol++)
- {
- // obtener el estado del pixel
- int thisPixel = pixels[thisRow][thisCol];
- // Cuando la fila este HIGH y la columna LOW
- //el LED donde se encuentran se enciende
- digitalWrite(col[thisCol], thisPixel);
- //Apagar el pixel
- if (thisPixel == LOW)
- {
- digitalWrite(col[thisCol], HIGH);
- }
- }
- //Poner el pin de la fila LOW para apagar toda la fila
- digitalWrite(row[thisRow], LOW);
- }
- }//fin funcion refreshscreed
- //**********************************************************************//
- //**********************************************************************//
- //----------------------FUNCION LIMPIAR---------------------------------//
- //**********************************************************************//
- void limpiar()
- {
- int limpia[8][8]=
- {
- { 1, 1, 1, 1, 1, 1, 1, 1},
- { 1, 1, 1, 1, 1, 1 ,1, 1},
- { 1, 1, 1, 1, 1, 1 ,1, 1},
- { 1, 1 ,1, 1, 1, 1, 1, 1},
- { 1, 1 ,1, 1, 1, 1 ,1, 1},
- { 1, 1, 1, 1, 1, 1, 1, 1},
- { 1, 1, 1, 1, 1, 1, 1, 1},
- { 1 ,1, 1, 1, 1, 1, 1, 1}
- };
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[i][j]=limpia[i][j];
- }
- }
- }//fin funcion limpiar
- //********************************************************************//
- //**********************************************************************//
- //---------------------FUNCION NUMEROS--------------------------------//
- //**********************************************************************//
- void numeros (char z)
- {
- limpiar();
- switch (z)
- {
- case '0':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=cero[j][i];
- }
- }
- break;
- case '1':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=uno[j][i];
- }
- }
- break;
- case '2':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=dos[j][i];
- }
- }
- break;
- case '3':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=tres[j][i];
- }
- }
- break;
- case '4':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=cuatro[j][i];
- }
- }
- break;
- case '5':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=cinco[j][i];
- }
- }
- break;
- case '6':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=seis[j][i];
- }
- }
- break;
- case '7':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=siete[j][i];
- }
- }
- break;
- case '8':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=ocho[j][i];
- }
- }
- break;
- case '9':
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=nueve[j][i];
- }
- }
- break;
- case R:
- for (int j=0; j<8; j++)
- {
- for (int i=0; i<8; i++)
- {
- pixels[j][i]=letraR[j][i];
- }
- }
- break;
- }//fin del switch
- }//fin de la funcion numeros
- //**********************************************************************//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement