Small changes
Dependencies: FATFileSystem
Fork of EALib by
Diff: TSC2046.cpp
- Revision:
- 6:405c6e5a4eaf
- Parent:
- 4:b32cf4ef45c5
- Child:
- 12:15597e45eea0
diff -r 3290d7b766d5 -r 405c6e5a4eaf TSC2046.cpp --- a/TSC2046.cpp Fri Oct 18 10:57:50 2013 +0000 +++ b/TSC2046.cpp Thu Oct 31 13:23:11 2013 +0000 @@ -55,7 +55,12 @@ _cs = 1; // active low _spi.format(8, 3); - _spi.frequency(1500000); + + // We are limiting the clock rate to 500000 since + // we have experienced a lot of noise when running with + // higher rate. It has not been examined why there is a + // lot of noise with higher rate. + _spi.frequency(500000); _calibrated = false; _initialized = false;