Also want to look into simple to make touch sensitive switches:
http://www.bytecraft.com/Touch_Sensitive_Switch
Code:
char touch_switch (void) {
pb_direction = output;
pb.0 = 0; // Discharge the pin
delay_Ms(1); // Wait
pb_direction = input; // Turn on the Constant current source
delay_Us(5); // Wait for 5 u_seconds
if (pb.0 == 1) return (0); // No touch detected
else return (1); // Touch detected
}
Ok, I'm going back to the palmpilot stuff. Just had to get all that out before I left atmega land for a while.