Apparatus is provided, including an external device, including a mount, placed in front of an eye, and a laser which emits toward the eye radiation that is outside of 380-750 nm. The apparatus additionally includes an intraocular device which is implanted entirely in the eye, and includes an energy receiver, a plurality of stimulating electrodes, a plurality of photosensors, and driving circuitry coupled to the energy receiver and to the photosensors, and configured to drive the electrodes to apply currents to a retina of the eye in response to the signals from the photosensors. The photosensors are (a) generally insensitive to the energy from the laser, and (b) generally sensitive to visible light. Other applications are also described.