What are the purposes of the compound and simple eyes of a grasshopper?

Compound eyes detect motion, and simple eyes detect light. or The compound eyes are used to "see". The simple eyes are used to detect light intensity.