Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 92a32d9

Browse files
author
James Foster
authored
Add LiquidCrystal_TC class. (#4)
1 parent 40740bb commit 92a32d9

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.arduino-ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ platforms:
1414
flags:
1515

1616
unittest:
17+
exclude_dirs:
18+
- "/Users/jfoster/Documents/Arduino/libraries/LiquidCrystal/test/"
1719
platforms:
1820
- mega2560
19-
21+
libraries:
22+
- "LiquidCrystal"
23+
2024
compile:
2125
platforms:
2226
- mega2560
27+
libraries:
28+
- "LiquidCrystal"

src/Devices/LiquidCrystal_TC.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "LiquidCrystal_TC.h"
2+

src/Devices/LiquidCrystal_TC.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <Arduino.h>
2+
#ifdef ARDUINO_CI
3+
#include <LiquidCrystal_CI.h>
4+
#else
5+
#include <LiquidCrystal.h>
6+
#endif
7+
8+
class LiquidCrystal_TC {
9+
private:
10+
const int RS = 24, EN = 22, D4 = 26, D5 = 28, D6 = 30, D7 = 32;
11+
LiquidCrystal* pLCD; // (RS, EN, D4, D5, D6, D7);
12+
13+
public:
14+
LiquidCrystal_TC();
15+
~LiquidCrystal_TC();
16+
void clear();
17+
void setCursor();
18+
void print();
19+
};

0 commit comments

Comments
 (0)