The final project of Embedde class.
Dependencies: C12832 LM75B ESP-call MMA7660
JOYSTICK.h
00001 #ifndef _JOY_H 00002 #define _JOY_H 00003 00004 #include "mbed.h" 00005 #include "BUZZER.h" 00006 00007 #define JOYSTICK_DEBOUNCING_DELAY 10 00008 #define JOYSTICK_BEEP_DELAY 50 00009 #define JOYSTICK_BEEP_CNT 1 00010 00011 extern InterruptIn joystickU; 00012 extern InterruptIn joystickD; 00013 extern InterruptIn joystickL; 00014 extern InterruptIn joystickR; 00015 extern InterruptIn joystickC; 00016 00017 #define JOYSTICK_U 0 00018 #define JOYSTICK_D 1 00019 #define JOYSTICK_L 2 00020 #define JOYSTICK_R 3 00021 #define JOYSTICK_C 4 00022 00023 void joystickInit(void); 00024 int joystickDir(void); 00025 00026 #endif
Generated on Fri Jul 15 2022 05:56:23 by 1.7.2