34 lines
744 B
C++
Executable File
34 lines
744 B
C++
Executable File
#include <Wire.h>
|
|
#include <LiquidCrystal_I2C.h>
|
|
#include <BigCrystal.h>
|
|
|
|
LiquidCrystal_I2C lcd(0x38); // Set the LCD I2C address
|
|
BigCrystal bigCrystal(&lcd);
|
|
|
|
void setup() {
|
|
bigCrystal.begin(20, 4); // Set to your LCD size
|
|
}
|
|
|
|
void loop() {
|
|
// Displays all characters is big front from 0x00 (space) to 0x5A (Z)
|
|
for (char c = 0x20; c <= 0x5A; c++) {
|
|
// Clear out the maximum width so that pars of wider
|
|
// characters are removed
|
|
clear();
|
|
|
|
bigCrystal.writeBig(c, 0, 0);
|
|
bigCrystal.setCursor(7, 0);
|
|
bigCrystal.write(c);
|
|
delay(1000);
|
|
}
|
|
}
|
|
|
|
void clear() {
|
|
for (int i = 0; i < 5; i++) {
|
|
bigCrystal.setCursor(i, 0);
|
|
bigCrystal.print(' ');
|
|
bigCrystal.setCursor(i, 1);
|
|
bigCrystal.print(' ');
|
|
}
|
|
}
|