Exemple fait en classe th4 du cours 247-637 (2017)

Dependencies:   mbed

Revision:
0:669a6bff2494
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/processusBouton.cpp	Fri Sep 15 20:02:05 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "processusBouton.h"
+
+uint16_t etatBouton;
+
+
+DigitalIn bouton1(USER_BUTTON);
+
+void initialiseBouton(void)
+{
+    etatBouton = 0;
+}
+
+void gereBouton(void)
+{
+    if (bouton1 == 1)
+    {
+        etatBouton = 1;
+    }
+}
\ No newline at end of file