FIRST APPROACH. “In one school of thought the programming could be external to the material and might be achieved by the “application of light, voltage, electric or magnetic fields, etc. For example, a liquid crystal display is a form of programmable matter.”
http://en.wikipedia.org/wiki/Programmable_matter