Local measurements of biological voltage production are key drivers of understanding in neurobiology and neurological and cardiac pathophysiology. Researchers have now shown that exciton–trion conversion in a two-dimensional semiconductor, MoS2, can be used to optically image cardiomyocyte action-potentials in real-time.