This will control the brightness of the red led using the capacitive touch sensor present onboard the KL25Z board.

Dependencies:   TSI mbed

Files at this revision

API Documentation at this revision

Comitter:
animesh44
Date:
Wed Jun 27 04:33:54 2018 +0000
Commit message:
This will control the brightness of the red led using the capacitive touch sensor present onboard the KL25Z board.

Changed in this revision

TSI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 19967d57a803 TSI.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TSI.lib	Wed Jun 27 04:33:54 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/emilmont/code/TSI/#507b1f67804b
diff -r 000000000000 -r 19967d57a803 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jun 27 04:33:54 2018 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+#include "TSISensor.h"
+
+
+int main() {
+TSISensor tsi;    
+PwmOut myled(LED1);
+    while(1) {
+        myled = 1-tsi.readPercentage();
+        wait(0.1);
+    }
+}
diff -r 000000000000 -r 19967d57a803 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 27 04:33:54 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a7c7b631e539
\ No newline at end of file