A photoswitch based on self-assembled single microwire of a phenyleneethynylene macrocycle.