Here are references for how to connect and code each physical output in your SparkFun Photon kit:
LED Lights
Speaker
Servo Motor
Micro OLED Display