A system and method for assessing the functionality of a visual system of the eye using a digital micro-mirror device (DMD) to generate a coded pattern which is illuminated by a light source. Optics project an image of the coded pattern onto the retina of the eye. Sensors detect electrical signals based on the response of the visual system to the image. One or more processors control the DMD and correlate the electrical response from the sensor with the coded DMD pattern to assess the functionality of the visual system.