Reference.LiquidCrystalCreateChar History

Hide minor edits - Show changes to markup

June 01, 2010, at 03:13 AM by Equipo Traduccion -
Changed lines 7-8 from:

Crea un carácter personalizado (gylph) para su uso en la pantalla LCD. Hasta ocho caracteres de 5x8 píxeles son permitidos (numerados del 0 al 7). La apariencia de cada carácter personalizado se especifica mediante una serie de ocho bytes, uno para cada fila. Los cinco bits menos significativos de cada byte determinan los píxeles en esa fila. Para mostrar un carácter personalizado en la pantalla, write() su número.

to:

Crea un carácter personalizado (gylph) para su uso en la pantalla LCD. Hasta ocho caracteres de 5x8 píxeles son permitidos (numerados del 0 al 7). La apariencia de cada carácter personalizado se especifica mediante una serie de ocho bytes, uno para cada fila. Los cinco bits menos significativos de cada byte determinan los píxeles en esa fila. Para mostrar un carácter personalizado en la pantalla, usar write() especificando su número.

June 01, 2010, at 03:12 AM by Equipo Traduccion -
Changed lines 5-10 from:

Description

Create a custom character (gylph) for use on the LCD. Up to eight characters of 5x8 pixels are supported (numbered 0 to 7). The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on the screen, write() its number.

Syntax

to:

Descripción

Crea un carácter personalizado (gylph) para su uso en la pantalla LCD. Hasta ocho caracteres de 5x8 píxeles son permitidos (numerados del 0 al 7). La apariencia de cada carácter personalizado se especifica mediante una serie de ocho bytes, uno para cada fila. Los cinco bits menos significativos de cada byte determinan los píxeles en esa fila. Para mostrar un carácter personalizado en la pantalla, write() su número.

Sintaxis

Changed lines 13-22 from:

Parameters

lcd: a variable of type LiquidCrystal

num: which character to create (0 to 7)

data: the character's pixel data

Example

to:

Parámetros

lcd: una variable del tipo LiquidCrystal

num: número del carácter a crear (0 to 7)

data: los datos de pixels del carácter a crear

Ejemplo

July 27, 2009, at 11:18 PM by David A. Mellis -
Changed lines 7-8 from:

Create a custom character (gylph) for use on the LCD. Up to eight characters of 5x8 pixels are supported (numbered 0 to 7). The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on the screen, write?() its number.

to:

Create a custom character (gylph) for use on the LCD. Up to eight characters of 5x8 pixels are supported (numbered 0 to 7). The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on the screen, write() its number.

July 27, 2009, at 11:17 PM by David A. Mellis -
Changed lines 7-8 from:

Create a custom character (gylph) for use on the LCD. Up to eight characters of 5x8 pixels are supported. The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row.

to:

Create a custom character (gylph) for use on the LCD. Up to eight characters of 5x8 pixels are supported (numbered 0 to 7). The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on the screen, write?() its number.

July 27, 2009, at 11:16 PM by David A. Mellis -
Added lines 1-47:

LiquidCrystal

createChar()

Description

Create a custom character (gylph) for use on the LCD. Up to eight characters of 5x8 pixels are supported. The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row.

Syntax

lcd.createChar(num, data)

Parameters

lcd: a variable of type LiquidCrystal

num: which character to create (0 to 7)

data: the character's pixel data

Example


#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

byte smiley[8] = {
  B00000,
  B10001,
  B00000,
  B00000,
  B10001,
  B01110,
  B00000,
};

void setup() {
  lcd.createChar(0, smiley);
  lcd.begin(16, 2);  
  lcd.write(0);
}

void loop() {}


Share