In the case of working with a MCU:
Connect the SIA, SIB, SW pins to the CH0, CH1, CH2 of logic analyser respectively, then power the module.
When clockwise rotating the encoder, the output waveform looks like:
When anti-clockwise rotating the encoder, the output waveform looks like:
When pressing the encoder button, the output waveform looks like:
Development resources: demo codes, schematic, datasheets, etc. Wiki: www.waveshare.com/wiki/Rotation_Sensor