An optical switch for routing signals includes a latch receiver connected to a waveguide that routes the signals and an actuator that includes an upper plate, a lower plate and a latch connected to the lower plate, the lower plate of the actuator moving vertically when power is applied to the lower plate, causing the latch to move vertically and engage the latch receiver. More particularly, it relates to a polyimide-graphene composite material prepared by adding modified graphene and a basic catalyst during polymerization of a polyimide precursor so as to improve mechanical strength and electrical conductivity and enable imidization at low temperature and a method for preparing same. A plurality of conductor plugs penetrate through the upper and lower surfaces of the package wafer. The selector selects one selection signal to input into the pulse width modulation controller, which receives other parameters set by a user or the system at the same time so as to control characteristics of the digital pulse width modulation signals, thereby improving the electric properties of a loading circuit. An electronic device for performing the input method is also disclosed.