This is my case with raspberry pi 3, suptronics x400, display 20x4 and two rotary endoders
Voltaje 8v-24V +- 20Wrms.
One encoder is volume, and play and pause, another one is next, previous track, and switch for other display screens, display and codes
lcd-display-and-buttons-in-python-tutorial-and-code-t1191.html