Files
Jérôme Delacotte 7b30d6e298 first commit
2025-03-06 11:15:32 +01:00

35 lines
772 B
C++
Executable File

#include <LiquidCrystal_SR3W.h>
#include <LCDBitmap.h>
#include <BigCrystal.h>
// Set to your shift rgister pins
LiquidCrystal_SR3W lcd(2, 3, 4, 7, POSITIVE);
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(' ');
}
}