Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of EALib by
Revision 6:405c6e5a4eaf, committed 2013-10-31
- Comitter:
- embeddedartists
- Date:
- Thu Oct 31 13:23:11 2013 +0000
- Parent:
- 5:3290d7b766d5
- Child:
- 7:e431d9d47db6
- Commit message:
- Updated SPI clock frequency for TSC2046
Changed in this revision
| TSC2046.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
