From 0349ad36fbf4e53984d7967384936362b0bcd240 Mon Sep 17 00:00:00 2001 From: James Foster Date: Tue, 27 Oct 2020 10:08:49 -0700 Subject: [PATCH] Add LiquidCrystal_TC class. --- .arduino-ci.yml | 8 +++++++- src/Devices/LiquidCrystal_TC.cpp | 2 ++ src/Devices/LiquidCrystal_TC.h | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/Devices/LiquidCrystal_TC.cpp create mode 100644 src/Devices/LiquidCrystal_TC.h diff --git a/.arduino-ci.yml b/.arduino-ci.yml index 570dd921..0cf54f50 100644 --- a/.arduino-ci.yml +++ b/.arduino-ci.yml @@ -14,9 +14,15 @@ platforms: flags: unittest: + exclude_dirs: + - "/Users/jfoster/Documents/Arduino/libraries/LiquidCrystal/test/" platforms: - mega2560 - + libraries: + - "LiquidCrystal" + compile: platforms: - mega2560 + libraries: + - "LiquidCrystal" \ No newline at end of file diff --git a/src/Devices/LiquidCrystal_TC.cpp b/src/Devices/LiquidCrystal_TC.cpp new file mode 100644 index 00000000..7e951e94 --- /dev/null +++ b/src/Devices/LiquidCrystal_TC.cpp @@ -0,0 +1,2 @@ +#include "LiquidCrystal_TC.h" + diff --git a/src/Devices/LiquidCrystal_TC.h b/src/Devices/LiquidCrystal_TC.h new file mode 100644 index 00000000..5c863454 --- /dev/null +++ b/src/Devices/LiquidCrystal_TC.h @@ -0,0 +1,19 @@ +#include +#ifdef ARDUINO_CI +#include +#else +#include +#endif + +class LiquidCrystal_TC { +private: + const int RS = 24, EN = 22, D4 = 26, D5 = 28, D6 = 30, D7 = 32; + LiquidCrystal* pLCD; // (RS, EN, D4, D5, D6, D7); + +public: + LiquidCrystal_TC(); + ~LiquidCrystal_TC(); + void clear(); + void setCursor(); + void print(); +};