This document provides information on how to connect the various external elements to the Raspberry Pi, such as motors, servos, camera, etc.:
A summary of the pin mapping (listing both BCM and BOARD layouts) for the expansion board:
The folders below contain Python sample code for interfacing with those aforementioned external elements. You can build on top of this code and use it as a starting point for your projects.