Photoreversible supramolecular polymerisation and hierarchical organization of hydrogen-bonded supramolecular co-polymers composed of diarylethenes and oligothiophenes.