Matriz LEDs 1.1

Matriz LEDs 1.1 Free App

Rated 3.67/5 (3) —  Free Android application by Kiwibot Robótica educativa

Advertisements

About Matriz LEDs 1.1

/* CÓDIGO PARA APP MATRIZ DE LEDS
La aplicación manda una letra 'a'(apagado) o 'e'(encendido) y dos números según la fila y la columna.
Desarrollado por Jose Pujol, Alberto Pumar y Carlos Pumar
Marzo de 2015
*/

#include
Matriz matriz(6, 9, 5);

int incomingByte; //Variable donde se almacena el primer Byte (a,e)
int unidad=0; // Variable donde se almacena el segundo Byte (fila)
int decena=0; //Variable donde se almacena el tercer Byte (columna)

void setup(){
Serial.begin(9600);
}
void loop(){
while (incomingByte < 1) { //Si recibe datos,
incomingByte = Serial.read(); //Acumula el último byte en incomingByte
matriz.printMatrix(); //Imprime los leds acumulados
}
while (decena < 1) { //Si recibe datos,
decena=Serial.read(); //Acumula el último byte en decena
}
while (unidad < 1) {
unidad=Serial.read(); //Acumula el último byte en unidades
}
if(incomingByte == 'e'){
matriz.newPixel(decena-48, unidad-48); //Acumula el led resultante
}
if(incomingByte == 'a'){
matriz.deletePixel(decena-48, unidad-48); //Borra el led resultante
}
//las variables se igualan a 0
incomingByte=0;
unidad=0;
decena=0;
} / * APP CODE FOR MATRIX LED
The application sends a letter 'a' (off) or 'e' (lit) and two numbers according to the row and column.
Powered by Jose Pujol, and Carlos Alberto Pumar Pumar
March 2015
* /

#include
Matrix (6, 9, 5);

int incomingByte; Variable // where the first byte is stored (a, e)
unit int = 0; // Variable where the second byte (row) is stored
dozen int = 0; // Variable where you stored the third byte (column)

void setup () {
  Serial.begin (9600);
}
void loop () {
  while (incomingByte <1) {// If data is received,
    incomingByte = Serial.read (); // Accumulate the last byte in incomingByte
    matriz.printMatrix (); // Print the accumulated leds
  }
  while (ten <1) {// If data is received,
    Serial.read dozen = (); // Accumulate the last byte in ten
  }
  while (unit <1) {
    Serial.read unit = (); // Accumulate the last byte in units
  }
  if (incomingByte == 'e') {
    matriz.newPixel (ten-48, unit-48); // Collect the resulting led
  }
  if (incomingByte == 'a') {
    matriz.deletePixel (ten-48, unit-48); // Clears the resulting led
  }
  // Variables are equal to 0
  incomingByte = 0;
  unit = 0;
  ten = 0;
}

How to Download / Install

Download and install Matriz LEDs 1.1 version 1.0 on your Android device!
Downloaded 500+ times, content rating: Everyone
Android package: appinventor.ai_cpjimenez123.APP_BTOOTH, download Matriz LEDs 1.1.apk

All Application Badges

Free
downl.
Android
1.5+
For everyone
Android app

App History & Updates

More downloads  Matriz LEDs 1.1 reached 500 - 1 000 downloads
More downloads  Matriz LEDs 1.1 reached 100 - 500 downloads
Name changed  Name changed! Matriz LEDs 1.0 now is known as Matriz LEDs 1.1.

Oh snap! No comments are available for Matriz LEDs 1.1 at the moment. Be the first to leave one!

Share The Word!


Rating Distribution

RATING
3.75
3 users

5

4

3

2

1