You must have gone through the Adafruit PiTFT setup instructions.
You must also have gone through the WiringPi-Python Setup instructions.
Get the repo:
git clone https://github.com/climberhunt/LapsePiTouch.git
Usage:
cd LapsePiTouch
sudo python lapse.py
Full details at Dave’s Blog.