Library for programmatic control of a digital signal processor (DSP) for driving galvanometer-directed laser illumination and photo-stimulation.