Issues porting capacitive touch code from Arduino to avr

Which Arduino did GreatScott use ?