Go to the LED fade example folder:
1
cd GrovePi/Projects/LED_Fade/
python led_fade.py
You can find the source for the example here.