Lily Pad w/2 capacitive touch sensors

I'm running into some programing issues.

I'm trying to run 2 sets of 12v LEDs through a Lily Pad. Each set of LEDs will have a AD7746 Breakout controlling them. One AD7746 will turn on/off, the other will start at low/med/high output.

Power will come from the wall and I have a step down going to the Lily Pad and a step up going out to the LEDs.

The closest code I've found is this minus a couple tweaks. http://web.media.mit.edu/~leah/LilyPad/build.html

I can't decipher what code needs to be "swapped out" for the touch sensors.

Any help would be greatly appreciated.

What code? That site just has a v. simple example AFAICT. Give us more detail on the circuit if you can