Inicio » Programacion » Facilino » Facilino Tutorial » [:es]Instrucciones para el manejo de una matriz de LEDs 8×8 en Facilino[:en]Instructions for 8×8 LEDs matrix in Facilino[:]

[:es]Instrucciones para el manejo de una matriz de LEDs 8×8 en Facilino[:en]Instructions for 8×8 LEDs matrix in Facilino[:]

[:es]En esta entrada se explican el conjunto de instrucciones disponibles para el manejo de una matriz de LEDs 8×8 en Facilino.

Instrucciones disponibles

Facilino dispone de un conjunto de instrucciones que permiten mostrar diferentes patrones de una matriz de LEDs 8×8. Para todas las instrucciones que dibujan un patrón en la matriz de LEDs debemos indicar los pines CS, DIN y CLK a los que está conectada la matriz de LEDs, así como el tipo de disposición:

Expresiones Predefinidas

Las expresiones predefinidas están pensadas para el uso en los robots DYOR que incorporan este tipo de electrónica.

Ejemplo

En este ejemplo se muestran las expresiones de «Feliz» y «Cabreado» en la matriz de LEDs.

Dibujo de un patrón genérico

La instrucción de dibujo de un patrón genérico te permite dibujar lo que quieras en la matriz de LEDs.

Ejemplo 1

En este ejemplo se muestra un patrón personalizado en la matriz de LEDs.

Ejemplo 2

En este ejemplo se muestra dibujos predefinidos en la matriz de LEDs. Concretamente se muestran los indicadores relativos al nivel de carga de batería.

Mostrar flujo de texto

La instrucción de flujo de texto permite mostrar de forma animada cualquier cadena de texto con un retardo controlado (tiempo en milisegundos en desplazar cada columna).

Ejemplo

En este ejemplo se muestra un flujo de texto con la palabra «Facilino».

 Vídeo

[:en]In this post, we explain the set of instructions available in Facilino to draw anything you want in 8×8 LEDs matrix.

Available Instructions

Facilino has a set of instructions to draw different patterns in an 8×8 LEDs matrix. All drawing instructions require the numbers of the CS, DIN and CLK pins where the LEDs matrix is connected to. In addition to this, they also need to specify the orientation:

Predefined expressions

Predefined expressions can be used in DYOR robots using this electronic to show the robot’s emotional state.

Ejemplo

In this example, we show the «Happy and «Angry» expressions in the LEDs matrix.

Generic pattern drawing

The generic pattern drawing instruction allows you to draw anything you want in the LEDs matrix.

Example 1

In this example, we show a customized pattern in the LEDs matrix.

Example 2

In this example, we show pre-defined icons in the LEDs matrix. In particular, we show icons relative to the battery level.

Show text flow

Text flow instruction allows you to write a text and animate it with a given delay (time in milliseconds between each column shift).

Ejemplo

This example shows an example of the text flow instruction using the word «Facilino».

Video

[:]