-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Library is now compatible with the New LiquidCrystal library
Added support for using either the standard Arduino LiquidCrystal library of the New LiquidCrystal library. BigCrystal now contains an lcd instance rather than using extending the LiquidCrystal class. This is a breaking change and sketches using v1.0.0 of BigCrystal will require modification.
- Loading branch information
1 parent
d916694
commit 428cdb4
Showing
14 changed files
with
311 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#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(' '); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <Wire.h> | ||
#include <LiquidCrystal_I2C.h> | ||
#include <BigCrystal.h> | ||
|
||
// Set up according to your LCD pins | ||
LiquidCrystal_I2C lcd(0x38); // Set the LCD I2C address | ||
BigCrystal bigCrystal(&lcd); | ||
|
||
void setup() { | ||
bigCrystal.begin(20, 4); | ||
|
||
bigCrystal.printBig("10:22", 0, 0); | ||
} | ||
|
||
void loop() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include <LiquidCrystal_SR.h> | ||
#include <LCDBitmap.h> | ||
#include <BigCrystal.h> | ||
|
||
// Set up according to your shift register pins | ||
LiquidCrystal_SR lcd(8, 7, TWO_WIRE); | ||
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(' '); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <LiquidCrystal_SR.h> | ||
#include <LCDBitmap.h> | ||
#include <BigCrystal.h> | ||
|
||
// Set up according to your shift register pins | ||
LiquidCrystal_SR lcd(8, 7, TWO_WIRE); | ||
BigCrystal bigCrystal(&lcd); | ||
|
||
void setup() { | ||
bigCrystal.begin(20, 4); | ||
|
||
bigCrystal.printBig("10:22", 0, 0); | ||
} | ||
|
||
void loop() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(' '); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() { | ||
} |
Oops, something went wrong.