Code to perform localized optogenetic stimulation using a simple method, as described in our paper. If you find this helpful, please consider citing: DeAngelis, B.D.*, Zavatone-Veth, J.A.*, Gonzalez-Suarez, A.D., and Clark, D.A. Spatiotemporally precise optogenetic activation of sensory neurons in freely walking Drosophila. eLife 9: e54183 (2020). DOI: 10.7554/eLife.54183. (*equal contributions).
The code to generate and project patterned stimuli relies on several packages and libraries, all of which are freely available.
- Psychtoolbox is used for stimulus generation and display control.
- Bindings for the LightCrafter 4500 projector are provided by matlab-lcr, an MIT-licensed library. For convenience, we include a copy under Projection/externals/matlab-lcr.
- Bindings for other LightCrafter projectors are provided by the TI-DLP-LightCrafter library, which is free software. For convenience, we include a copy of the relevant code under Projection/externals.