RTOS

Dependencies:   DebounceIn

Files at this revision

API Documentation at this revision

Comitter:
caosornot
Date:
Mon Nov 23 02:54:51 2015 +0000
Commit message:
Ejemplo Clase

Changed in this revision

DebounceIn.lib Show annotated file Show diff for this revision Revisions of this file
EjemploClase.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DebounceIn.lib	Mon Nov 23 02:54:51 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/AjK/code/DebounceIn/#31ae5cfb44a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EjemploClase.cpp	Mon Nov 23 02:54:51 2015 +0000
@@ -0,0 +1,13 @@
+  #include "mbed.h"
+  #include "DebounceIn.h"
+ 
+  DebounceIn  d(p5);
+  DigitialOut led1(LED1);
+  DigitialOut led2(LED2);
+ 
+  int main() {
+     while(1) {
+          led1 = d;
+          led2 = d.read();
+      }
+  }
\ No newline at end of file