I would like to try adding buttons and maybe a optical transistor (for IR) to my Pi. I've read several places advising the use of a 1k resistor as a buffer, but is that needed or would the input pin be ok shorted directly to ground or 3.3v? From what I've seen, it should be safe as long as the pin isn't switched to output, but I also don't want to blow up my Pi already :-)
Also, is it possible to use an optical transistor this way?