TS library is for the 4-wire resistive Touch Screen (without an interface) which is usually included on TFT LCD like are MCUFriend displays.
TS_porting.h@1:ca8fdb4d4afc, 2021-01-17 (annotated)
- Committer:
- JohnnyK
- Date:
- Sun Jan 17 15:58:15 2021 +0000
- Revision:
- 1:ca8fdb4d4afc
- Parent:
- 0:f2fda7f69e5a
Corrections - include guards was added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JohnnyK | 1:ca8fdb4d4afc | 1 | /* |
JohnnyK | 1:ca8fdb4d4afc | 2 | * Mbed implementation but teory is it can be used also on another platform, I hope. |
JohnnyK | 1:ca8fdb4d4afc | 3 | */ |
JohnnyK | 1:ca8fdb4d4afc | 4 | |
JohnnyK | 1:ca8fdb4d4afc | 5 | #ifndef TS_PORTING_H |
JohnnyK | 1:ca8fdb4d4afc | 6 | #define TS_PORTING_H |
JohnnyK | 1:ca8fdb4d4afc | 7 | |
JohnnyK | 1:ca8fdb4d4afc | 8 | #include "mbed.h" |
JohnnyK | 1:ca8fdb4d4afc | 9 | |
JohnnyK | 1:ca8fdb4d4afc | 10 | class TouchScreenPort{ |
JohnnyK | 1:ca8fdb4d4afc | 11 | protected: |
JohnnyK | 1:ca8fdb4d4afc | 12 | int getADCvalue(int pin); |
JohnnyK | 1:ca8fdb4d4afc | 13 | void setDigitalPin(int pin, int dir, int value); |
JohnnyK | 0:f2fda7f69e5a | 14 | }; |
JohnnyK | 1:ca8fdb4d4afc | 15 | #endif |