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.
Revision 0:bf4b6e255868, committed 2015-01-13
- Comitter:
- armed
- Date:
- Tue Jan 13 00:22:17 2015 +0000
- Commit message:
- Initial commit.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r bf4b6e255868 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Jan 13 00:22:17 2015 +0000
@@ -0,0 +1,22 @@
+
+#include "mbed.h"
+#include "QT2100.h"
+
+Serial pc(USBTX, USBRX);
+
+QT2100 qtouch(p5, p6, p7, p8, USBTX, USBRX);
+
+main(void)
+{
+ qtouch.init();
+ qtouch.devId();
+ qtouch.verifyChannels();
+
+ while(1) {
+
+ pc.printf(" QT2100 Controller: Button: %d Slider Value: %x\n",
+ qtouch.keys(), qtouch.slider());
+
+ wait_ms(50);
+ }
+}
Atmel AT42QT2100 Capacitive Touch Controller