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 _JOY_H
pkr7098 1:ed1c6618f739 2 #define _JOY_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 #define JOYSTICK_DEBOUNCING_DELAY 10
pkr7098 1:ed1c6618f739 8 #define JOYSTICK_BEEP_DELAY 50
pkr7098 1:ed1c6618f739 9 #define JOYSTICK_BEEP_CNT 1
pkr7098 1:ed1c6618f739 10
pkr7098 1:ed1c6618f739 11 extern InterruptIn joystickU;
pkr7098 1:ed1c6618f739 12 extern InterruptIn joystickD;
pkr7098 1:ed1c6618f739 13 extern InterruptIn joystickL;
pkr7098 1:ed1c6618f739 14 extern InterruptIn joystickR;
pkr7098 1:ed1c6618f739 15 extern InterruptIn joystickC;
pkr7098 1:ed1c6618f739 16
pkr7098 1:ed1c6618f739 17 #define JOYSTICK_U 0
pkr7098 1:ed1c6618f739 18 #define JOYSTICK_D 1
pkr7098 1:ed1c6618f739 19 #define JOYSTICK_L 2
pkr7098 1:ed1c6618f739 20 #define JOYSTICK_R 3
pkr7098 1:ed1c6618f739 21 #define JOYSTICK_C 4
pkr7098 1:ed1c6618f739 22
pkr7098 1:ed1c6618f739 23 void joystickInit(void);
pkr7098 1:ed1c6618f739 24 int joystickDir(void);
pkr7098 1:ed1c6618f739 25
pkr7098 1:ed1c6618f739 26 #endif