 boolean touch_waitup;      /* Whether we are waiting a cycle */
 uint32_t swipe_last_time;  /* Last known time while swiping */
 uint16_t swipe_last_pos;   /* Last known position while swiping */
+uint16_t swipe_start_pos;  /* Start position of a swipe */
 float swipe_speed;         /* Speed of swiping in pixels/ms */
 
 /* Sketch information buffer */

/* Swipe settings and calibration */
#define SWIPE_FADE          0.05
#define SWIPE_THRESHOLD     2.0

/* Sketches list settings */
#define SKETCHES_CNT_X      4


uint8_t LCD_isTouched(uint16_t x, uint16_t y, uint8_t w, uint8_t h) {
  return touch_x >= x && touch_y >= y && touch_x < (x + w) && touch_y < (y + h);
}
