aa

Dependencies:   TSI mbed

Files at this revision

API Documentation at this revision

Comitter:
anmolhardik
Date:
Thu Feb 09 13:42:05 2017 +0000
Commit message:
aa;

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 b9b98b4993c9 TSI.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TSI.lib	Thu Feb 09 13:42:05 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/emilmont/code/TSI/#507b1f67804b
diff -r 000000000000 -r b9b98b4993c9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Feb 09 13:42:05 2017 +0000
@@ -0,0 +1,41 @@
+#include "mbed.h"
+#include "TSISensor.h"
+BusOut led (PTB18,PTB19,PTD1);
+int main()
+{
+    TSISensor tsi;
+    Serial pc (USBTX,USBRX);
+    float tsi_value;
+    while(1)
+    {
+         tsi_value = tsi.readPercentage();
+        
+    
+         {
+            pc.printf("tsi value = %f\n\r",tsi_value);
+            led=0x6;
+         }
+            else if(tsi_value>=0.6&&tsi_value<=1.0)
+            {
+                pc.printf("tsi value= %f\n\r",tsi_value);
+                led=0x3;
+            }
+                else
+                {
+                    led=0xf;
+                }
+        }
+}
+                
+                
+                
+                
+                
+                
+                
+                
+                
+            
+                
+                
+                    
diff -r 000000000000 -r b9b98b4993c9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Feb 09 13:42:05 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d
\ No newline at end of file