xypad theremin for LPC1768

Dependencies:   MODDMA mbed

Committer:
exopiped
Date:
Mon Mar 14 23:43:44 2016 +0000
Revision:
2:c5eeaf1c8e69
Parent:
0:8ee38453bad9
touch screen driver glitches removed; debug statements commented out

Who changed what in which revision?

UserRevisionLine numberNew contents of line
exopiped 0:8ee38453bad9 1 /*
exopiped 0:8ee38453bad9 2 * jswitch.h -- header for jswitch.cpp, which reads the
exopiped 0:8ee38453bad9 3 * joystick pins, and provides debounced version
exopiped 0:8ee38453bad9 4 * of the pins to js_read() caller.
exopiped 0:8ee38453bad9 5 */
exopiped 0:8ee38453bad9 6 #ifndef JSTICK_H
exopiped 0:8ee38453bad9 7 #define JSTICK_H
exopiped 0:8ee38453bad9 8 #define JS_CENTER 0x10
exopiped 0:8ee38453bad9 9 #define JS_UP 0x04
exopiped 0:8ee38453bad9 10 #define JS_DOWN 0x08
exopiped 0:8ee38453bad9 11 #define JS_LEFT 0x01
exopiped 0:8ee38453bad9 12 #define JS_RIGHT 0x02
exopiped 0:8ee38453bad9 13 void js_init(void);
exopiped 0:8ee38453bad9 14 void js_debounce(void);
exopiped 0:8ee38453bad9 15 unsigned char js_read(unsigned char mask);
exopiped 0:8ee38453bad9 16 #endif