-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ed3e8b
commit e9bbf00
Showing
5 changed files
with
122 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
stuff/ |
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,37 @@ | ||
/* | ||
* File: HelloWorld.ino | ||
* Author: Gavin Lyons. | ||
* Description: See URL for full details. | ||
* URL: https://github.com/gavinlyonsrepo/HD44780_LCD_PCF8574 | ||
*/ | ||
|
||
// Section: Included library | ||
#include "HD44780_LCD_PCF8574.h" | ||
|
||
// Section: Globals | ||
// myLCD(rows , cols , PCF8574 I2C address) | ||
HD44780LCD myLCD( 2, 16, 0x27); // instantiate a LCD object | ||
|
||
// Section: Setup | ||
|
||
void setup() | ||
{ | ||
delay(50); | ||
myLCD.PCF8574_LCDInit(LCDCursorTypeOn); | ||
myLCD.PCF8574_LCDClearScreen(); | ||
myLCD.PCF8574_LCDBackLightSet(true); | ||
myLCD.PCF8574_LCDGOTO(LCDLineNumberOne, 0); | ||
} | ||
|
||
// Section: Main Loop | ||
|
||
void loop() | ||
{ | ||
char testString[] = "Hello World"; | ||
myLCD.PCF8574_LCDSendString(testString); | ||
myLCD.PCF8574_LCDSendChar('!'); // Display a single character | ||
while(true){}; | ||
|
||
} | ||
|
||
// EOF |
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