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:949dbed8f677, committed 2013-12-17
- Comitter:
- kubaczyz
- Date:
- Tue Dec 17 20:25:47 2013 +0000
- Commit message:
- Najprostszy program wykorzystuj?cy `touch sensor`
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TSI.lib Tue Dec 17 20:25:47 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/vsluiter/code/TSI/#4dc2f5a3a731
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 17 20:25:47 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a842253909c9 \ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensorr.cpp	Tue Dec 17 20:25:47 2013 +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);
+    }
+}