Equipment that can be implemented in tissues including nerve cells is disclosed. The apparatus includes a plurality of pixels arranged in a two-dimensional array so as to be able to recognize the time of light incident on the pixels, and a biocompatible layer wrapping the device to protect the device and tissues in both directions, Each of the plurality of pixels includes a light sensor for receiving light, a microelectrode for transmitting a stimulus to target neurons among the neurons for recognition, and a circuit for driving the electrode and for driving the stimulus from the light Wherein the bi-dimensional array is disposed in the device having a front surface and a rear surface opposite the front surface, the biocompatible layers having openings that allow electrodes of the pixels to stimulate the nerve cells, A flexible material that allows the lens to bend in a two-dimensional manner along the shape of the human eye. Wherein the flexible material is translucent such that the device can receive light from either the front side or the back side of the device. In another embodiment, a manufacturing method for a flexible device having an array of pixels for a retinal prosthesis is disclosed. The method comprises forming layered structures on a substrate comprising an array of pixels, each pixel comprising processing circuits, a microelectrode and an optical sensor, a first set of biocompatible layers on the layered structures, Thinning the substrate to a controlled thickness of the substrate to allow bending of the substrate to the retraction of the retina, and forming a second set of biocompatible layers on the thinned substrate, Wherein the second set of biocompatible layers comprises a first set of biocompatible layers around the layered structure forming sealed biocompatible layers wrapping the flexible device to allow the flexible device to make long- Wherein the top surfaces of the microelectrodes in the pixels are exposed through the biocompatible layers