Prathamesh Satardekar / Mbed 2 deprecated SampleTSI

Dependencies:   TSI mbed

Files at this revision

API Documentation at this revision

Comitter:
prathameshrs22
Date:
Tue Jan 09 10:52:48 2018 +0000
Commit message:
Initial;

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TSI.lib	Tue Jan 09 10:52:48 2018 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/emilmont/code/TSI/#507b1f67804b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jan 09 10:52:48 2018 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+ #include "TSISensor.h"
+ 
+ int main(void) {
+     PwmOut led(LED_GREEN);
+     TSISensor tsi;
+     
+     while (true) {
+         led = 1.0 - tsi.readPercentage();
+         wait(0.1);
+     }
+ }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jan 09 10:52:48 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7130f322cb7e
\ No newline at end of file