Brain function can be explored by stimulation or inhibition of specific neurons using optogenetics with light-senstive proteins and precise light control.