4線抵抗皮膜式タッチパネル用
Dependents: 11U68_MP3Player with TFTLCD 11U68_MP3Player-with-TFTLCD
Diff: TouchPanel.h
- Revision:
- 0:6f90e19b1902
- Child:
- 2:2fe192777f79
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TouchPanel.h Thu Jul 16 00:27:34 2015 +0000 @@ -0,0 +1,31 @@ +#ifndef TOUCHPANEL_H +#define TOUCHPANEL_H + +#include "mbed.h" + +#ifdef __cplusplus +extern "C" { +#endif + +uint16_t readTouchPanelX_Analog(); +uint16_t readTouchPanelY_Analog(); + +/* int32_t calcTouchPanelPosX(uint16_t ad_x) */ +/* argument */ +/* uint16_t ad_x:TouchPanel ADC X axis value */ +/* retuen -1:not touch TouchPanel */ +/* positive integer(0~TOUCHPANEL_X_MAX_SIZE):touch position X axis */ +int32_t getTouchPanelPosX(); + +/* int32_t calcTouchPanelPosY(uint16_t ad_y) */ +/* argument */ +/* uint16_t ad_y:TouchPanel ADC Y axis value */ +/* retuen -1:not touch TouchPanel */ +/* positive integer(0~TOUCHPANEL_Y_MAX_SIZE):touch position Y axis */ +int32_t getTouchPanelPosY(); + +#ifdef __cplusplus +} +#endif + +#endif