The final project of Embedde class.

Dependencies:   C12832 LM75B ESP-call MMA7660

JOYSTICK/JOYSTICK.h

Committer:
pkr7098
Date:
2021-06-03
Revision:
2:37756b51ccdb
Parent:
1:ed1c6618f739

File content as of revision 2:37756b51ccdb:

#ifndef _JOY_H
#define _JOY_H

#include "mbed.h"
#include "BUZZER.h"

#define JOYSTICK_DEBOUNCING_DELAY  10
#define JOYSTICK_BEEP_DELAY 50
#define JOYSTICK_BEEP_CNT   1

extern InterruptIn joystickU;
extern InterruptIn joystickD;
extern InterruptIn joystickL;
extern InterruptIn joystickR;
extern InterruptIn joystickC;

#define JOYSTICK_U   0
#define JOYSTICK_D   1
#define JOYSTICK_L   2
#define JOYSTICK_R   3
#define JOYSTICK_C   4

void joystickInit(void);
int joystickDir(void);

#endif