CatPot 2015-2016 / Mbed 2 deprecated BallCheck_IRM2121_InterrputInAdd

Dependencies:   IRM2121 interruptin_mod mbed

Files at this revision

API Documentation at this revision

Comitter:
ryuna
Date:
Fri Dec 05 14:52:13 2014 +0000
Commit message:
example program!!;

Changed in this revision

IRM2121.lib Show annotated file Show diff for this revision Revisions of this file
interruptin_mod.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/IRM2121.lib	Fri Dec 05 14:52:13 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/ryuna/code/IRM2121/#b25c8ac20d5b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interruptin_mod.lib	Fri Dec 05 14:52:13 2014 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/bousiya03/code/interruptin_mod/#1cc9d9e3cf8c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 05 14:52:13 2014 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include <IRM2121.h>
+
+DigitalOut myled(LED1);
+IRM2121 irm(p21);
+
+int main() {
+    int memory;
+
+    while(1) {
+
+        irm.Set();
+        
+        wait_ms(30);//30ms以下でも大丈夫だが個数や保証度が減ることを考慮する必要がある.
+        
+        memory = irm.Read();
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 05 14:52:13 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file