STMPE610 touch sensor driver library
Dependents: TS_Eyes Tokei testUniGraphic_150217 AfficheurTFTAdafruit ... more
Revision 4:0aa8f72d3cdd, committed 2014-12-13
- Comitter:
- Rhyme
- Date:
- Sat Dec 13 08:11:29 2014 +0000
- Parent:
- 3:ead62a9c3d1a
- Child:
- 5:988661c63061
- Commit message:
- getPoint function added with comment
Changed in this revision
| SPI_STMPE610.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SPI_STMPE610.cpp Sat Dec 13 07:08:52 2014 +0000
+++ b/SPI_STMPE610.cpp Sat Dec 13 08:11:29 2014 +0000
@@ -222,7 +222,7 @@
return( touched ) ;
}
-// following values are measured
+// following values were measured
// by using test_SPI_STMPE610
#define TOUCH_MIN_X 360
#define TOUCH_MIN_Y 270
@@ -232,7 +232,7 @@
#define TFT_WIDTH 240
#define TFT_HEIGHT 320
-int SPI_STMPE610::getPoint(uint16_t *x, uint16_t *y, uint16_t *z = 0)
+int SPI_STMPE610::getPoint(uint16_t *x, uint16_t *y, uint16_t *z)
{
uint8_t touched = 0 ;
uint16_t tx, ty, tz ;