Yves Roy / Mbed 2 deprecated 247-637-th4

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers processusBouton.cpp Source File

processusBouton.cpp

00001 #include "mbed.h"
00002 #include "processusBouton.h"
00003 
00004 uint16_t etatBouton;
00005 
00006 
00007 DigitalIn bouton1(USER_BUTTON);
00008 
00009 void initialiseBouton(void)
00010 {
00011     etatBouton = 0;
00012 }
00013 
00014 void gereBouton(void)
00015 {
00016     if (bouton1 == 1)
00017     {
00018         etatBouton = 1;
00019     }
00020 }