A spatial light modulator apparatus for an optical microscope system including an optical head with a mounting flange for mounting the optical head to a port of the microscope, a DMD for generating a pattern image of light, a light source mount for receiving a source of illumination, and one or more optical elements for directing light from the source of illumination to the DMD and to direct the pattern image generated by the DMD to the microscope. A DMD controller has a digital input and is connected to the DMD for driving the individual micromirrors of the DMD to generate the pattern image. A pattern generation subsystem is configured to output pattern image data and a digital interface is connected between the digital input of the DMD controller and the pattern generation subsystem, the digital interface configured to provide a digital drive signal to the DMD controller corresponding to the pattern image data.