The burgeoning field of optogenetics makes it possible for scientists to control brain activity using pulses of light. Now, researchers have developed an optoelectronic device which opens the possibility of bidirectional communication with the brain. The new technology enables stimulation of neural microcircuits with millisecond precision according to predescribed space-time maps while monitoring changes in neural activity across the targeted microcircuits.