xypad theremin for LPC1768

Dependencies:   MODDMA mbed

touch.h

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

File content as of revision 2:c5eeaf1c8e69:

/*
 * touch.h -- interface definition for touch screen monitor
 */
#ifndef TOUCH_H
#define TOUCH_H
#define TOUCH_MAX_AMPLITUDE 255
#define TOUCH_MAX_FREQUENCY 1047
#define TOUCH_MIN_FREQUENCY 43
bool touch_init(void);
int touch_get_xy(short *x,short *y);
bool touch_debounce(void);
int touch_frequency(void);
int touch_amplitude(void);
#endif