xypad theremin for LPC1768

Dependencies:   MODDMA mbed

jswitch.h

Committer:
exopiped
Date:
2016-03-14
Revision:
2:c5eeaf1c8e69
Parent:
0:8ee38453bad9

File content as of revision 2:c5eeaf1c8e69:

/*
 * jswitch.h -- header for jswitch.cpp, which reads the 
 *    joystick pins, and provides debounced version
 *    of the pins to js_read() caller. 
 */
 #ifndef JSTICK_H
 #define JSTICK_H
 #define JS_CENTER 0x10
 #define JS_UP     0x04
 #define JS_DOWN   0x08
 #define JS_LEFT   0x01
 #define JS_RIGHT  0x02
 void js_init(void);
 void js_debounce(void);
 unsigned char js_read(unsigned char mask);
 #endif