Complex lattices that change in response to stimuli open a range of applications in electronics, robotics, and medicine