The final project of Embedde class.

Dependencies:   C12832 LM75B ESP-call MMA7660

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SWITCH.h Source File

SWITCH.h

00001 #ifndef _SWITCH_H
00002 #define _SWITCH_H
00003 
00004 #include "mbed.h"
00005 #include "BUZZER.h"
00006 
00007 extern InterruptIn switch2;
00008 extern InterruptIn switch3;
00009 
00010 #define SWITCH_LEFT 0
00011 #define SWITCH_RIGHT    1
00012 
00013 #define SWITCH_DEBOUNCING_DELAY  50
00014 #define SWITCH_BEEP_CNT   1
00015 void switchInit(void);
00016 bool switchValue(int dir);
00017 bool switchValueWait(int dir);
00018 
00019 #endif