- Main Page
- Files

- File List
- Globals

# include/touch.h

Go to the documentation of this file.

    00001
    00008 #ifndef TOUCH_H_
    00009 #define TOUCH_H_ TOUCH_H_
    00010
    00011 #include "adc.h"
    00012
    00013
    00014 #define TOUCH_PORT      PORTA
    00015 #define TOUCH_PIN       PINA
    00016 #define TOUCH_DDR       DDRA
    00017
    00018 #define TOUCH_X1 PA1
    00019 #define TOUCH_X2 PA3
    00020 #define TOUCH_Y1 PA5
    00021 #define TOUCH_Y2 PA7
    00022
    00023 #define TOUCH_PRESSED_LEVEL 1000
    00024
    00025 uint8_t touch_is_pressed();
    00026
    00027 int16_t touch_readX();
    00028 int16_t touch_readY() ;
    00029
    00030 #endif /* TOUCH_H_ */