A Strategy for Visible Light-Driven Bidirectional Switching of Spiropyrans and Fabrication of Photonic Logic Gate via the Modulation of Transmittance | Synapse