PINOUT: looking into the 17-pin connector, the pins are numbered from right to left, top row odd/bottom row even.
8-pin connector:
Pin/Connection/Color with stripe
Pin 4 / GND / BLACK with RED stripe
Pin 6 / +5V / RED with BLACK stripe
Pin 8 / B+ / GREEN with BLACK stripe
Pin 9 / B- / BLACK with GREEN stripe
Pin 10 / A+ / WHITE with BLACK stripe
Pin 11/ A- / BLACK with WHITE stripe
Pin 12/ Z+ / BLUE with BLACK stripe
Pin 13/ Z- / BLACK with BLUE stripe