STMPE610 touch sensor driver library
Dependents: TS_Eyes Tokei testUniGraphic_150217 AfficheurTFTAdafruit ... more
Revision 7:a012c1710119, committed 2015-08-08
- Comitter:
- Rhyme
- Date:
- Sat Aug 08 12:24:34 2015 +0000
- Parent:
- 6:34e7dc5991b5
- Child:
- 8:e4b4cf8cf7d6
- Commit message:
- In constructor, cs is constructed as pull-up to avoid conflict with other SPI devices on the same line(s).
Changed in this revision
| SPI_STMPE610.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SPI_STMPE610.cpp Sun Aug 02 14:00:47 2015 +0000
+++ b/SPI_STMPE610.cpp Sat Aug 08 12:24:34 2015 +0000
@@ -133,7 +133,7 @@
#define DEF_VOFFSET -30.933990
SPI_STMPE610::SPI_STMPE610(PinName mosi, PinName miso, PinName sclk, PinName cs) :
- m_spi(mosi, miso, sclk), m_cs(cs) {
+ m_spi(mosi, miso, sclk), m_cs(cs, 1) {
// activate the peripheral
m_cs = 0 ;
_mode = 0 ;