Hi,

Could anyone refer me to schematics and code for adding a piezo input. Using it just like a switch. What I'm wondering is should there be a diode before the input pin?

Thanks,
Tony