Multifunctional micro-devices for neuromorphic computing, display and energy saving