This work reports a method for controlling the cardiac rhythm of intact murine hearts of transgenic channelrhodopsin-2 (ChR2) mice using local photostimulation with a micro-LED array and simultaneous optical mapping of epicardial membrane potential.