Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Tue Jul 12 2022 19:38:07 by
1.7.2