The invention relates to a microelectrode array, comprising a plurality of electrodes for electrically measuring brain waves and an integrated optical stimulation unit for stimulating brain regions by means of optical signals, wherein the stimulation unit has one or more electrical light sources.