-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from aleemont1/alessandro
LCD prints and fix
- Loading branch information
Showing
8 changed files
with
38 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
#include "../api/LCD.h" | ||
#include "Arduino.h" | ||
|
||
LCD::LCD(int address, int columns, int rows) : lcd(address, columns, rows) { | ||
LCD::LCD(int address, int columns, int rows) : lcd(address, columns, rows) | ||
{ | ||
lcd.init(); | ||
lcd.backlight(); | ||
lcd.clear(); | ||
} | ||
|
||
void LCD::write(const char* string, int start_col, int start_rows) { | ||
void LCD::clear() | ||
{ | ||
lcd.clear(); | ||
} | ||
|
||
void LCD::write(const char *string, int start_col, int start_rows) | ||
{ | ||
Serial.println("LCD::Sto scrivendo sul display" + String(string)); | ||
lcd.clear(); | ||
lcd.setCursor(start_col, start_rows); | ||
lcd.print(string); | ||
} |
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
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