INS and diabetes mellitus: This optogenetic system with modulation of cAMP and insulin release can be employed for the study of β-cell function and for enabling new therapeutic modalities for diabetes.