I would like to check that my rotary encoder switch is working. A video on YouTube says it can be checked using an oscilloscope but doesn't say how to connect it. I guess from pinouts that I've seen I need to connect the two pins to Vcc and GND and the other three to an oscilloscope with common GND in the middle. Are there other components required? How do I determine which pins are positive and negative? Would it be damaged by reverse polarity? Thanks.