Creador de caracteres byte
Custom Character Generator
for HD44780 LCD Modules
Haga clic en los píxeles para generar el codigo.
Pixels
Codigo
byte customChar[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
};
| LCD Module | Arduino Pin |
|---|---|
| RS | |
| RW | GND |
| Enable | |
| D4 | |
| D5 | |
| D6 | |
| D7 |
Example Arduino Sketch
(LiquidCrystal library reference)#include// initialize the library LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte customChar[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000
};
void setup()
{
// create a new custom character
lcd.createChar(0, customChar);
// set up number of columns and rows
lcd.begin(16, 2);
// print the custom char to the lcd
// why typecast? see: http://arduino.cc/forum/index.php?topic=74666.0
lcd.write((uint8_t)0);
}
void loop()
{
}
Comentarios
Publicar un comentario