EmbedEd / Mbed 2 deprecated mbed_theremin

Dependencies:   MODDMA mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers jswitch.h Source File

jswitch.h

00001 /*
00002  * jswitch.h -- header for jswitch.cpp, which reads the 
00003  *    joystick pins, and provides debounced version
00004  *    of the pins to js_read() caller. 
00005  */
00006  #ifndef JSTICK_H
00007  #define JSTICK_H
00008  #define JS_CENTER 0x10
00009  #define JS_UP     0x04
00010  #define JS_DOWN   0x08
00011  #define JS_LEFT   0x01
00012  #define JS_RIGHT  0x02
00013  void js_init(void);
00014  void js_debounce(void);
00015  unsigned char js_read(unsigned char mask);
00016  #endif