first commit
This commit is contained in:
33
libraries/BigCrystal/examples/NewLCD_SR2W/AllCharacters/AllCharacters.ino
Executable file
33
libraries/BigCrystal/examples/NewLCD_SR2W/AllCharacters/AllCharacters.ino
Executable file
@@ -0,0 +1,33 @@
|
||||
#include <LiquidCrystal_SR2W.h>
|
||||
#include <BigCrystal.h>
|
||||
|
||||
// Change to your shift register pins
|
||||
LiquidCrystal_SR2W lcd(2, 3);
|
||||
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(' ');
|
||||
}
|
||||
}
|
||||
15
libraries/BigCrystal/examples/NewLCD_SR2W/PrintString/PrintString.ino
Executable file
15
libraries/BigCrystal/examples/NewLCD_SR2W/PrintString/PrintString.ino
Executable file
@@ -0,0 +1,15 @@
|
||||
#include <LiquidCrystal_SR2W.h>
|
||||
#include <BigCrystal.h>
|
||||
|
||||
// Change to your shift register pins
|
||||
LiquidCrystal_SR2W lcd(2, 3);
|
||||
BigCrystal bigCrystal(&lcd);
|
||||
|
||||
void setup() {
|
||||
bigCrystal.begin(20, 4);
|
||||
|
||||
bigCrystal.printBig("10:22", 0, 0);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
}
|
||||
Reference in New Issue
Block a user