QTouch Design Guide - Cornell University Design Guide Atmel provides a QTouch library for the design of capacitive sensors using the QTouch technology. Implementation in Atmel Studio - [PDF Document]
How to implement capacitive touch with an AVR® microcontroller - YouTube
Surprise. There is NO GCC QTouch library for the ATTINY40! – DNC Labs