The final project of Embedde class.

Dependencies:   C12832 LM75B ESP-call MMA7660

Committer:
pkr7098
Date:
Thu Jun 03 07:09:55 2021 +0000
Revision:
2:37756b51ccdb
Parent:
1:ed1c6618f739
The final project of Embedde class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pkr7098 1:ed1c6618f739 1 #ifndef _SWITCH_H
pkr7098 1:ed1c6618f739 2 #define _SWITCH_H
pkr7098 1:ed1c6618f739 3
pkr7098 1:ed1c6618f739 4 #include "mbed.h"
pkr7098 1:ed1c6618f739 5 #include "BUZZER.h"
pkr7098 1:ed1c6618f739 6
pkr7098 1:ed1c6618f739 7 extern InterruptIn switch2;
pkr7098 1:ed1c6618f739 8 extern InterruptIn switch3;
pkr7098 1:ed1c6618f739 9
pkr7098 1:ed1c6618f739 10 #define SWITCH_LEFT 0
pkr7098 1:ed1c6618f739 11 #define SWITCH_RIGHT 1
pkr7098 1:ed1c6618f739 12
pkr7098 1:ed1c6618f739 13 #define SWITCH_DEBOUNCING_DELAY 50
pkr7098 1:ed1c6618f739 14 #define SWITCH_BEEP_CNT 1
pkr7098 1:ed1c6618f739 15 void switchInit(void);
pkr7098 1:ed1c6618f739 16 bool switchValue(int dir);
pkr7098 1:ed1c6618f739 17 bool switchValueWait(int dir);
pkr7098 1:ed1c6618f739 18
pkr7098 1:ed1c6618f739 19 #endif