Both the buttons and the analog sticks return the expected values when I run the example program.
Here is a picture of the wiring: