We investigate topologically enhanced localization and optical switching in the one-dimensional (1D) periodically driven Shockley model, theoretically and numerically. Transport properties of the model, arranged as a 1D photonic array of waveguides, are discussed. We find that light beam propagating in such an array can be well localized under both periodic and open boundary conditions, thanks to the zero-energy and edge states that depend on the topological structure of quasi-energy. Topological protection of the localization due to the edge state is demonstrated, based on which an optical switch with high efficiency is proposed.