Text this: Functional photoactive and electroactive nanodevices