Compared to that of the as-casting film, the UV/vis spectrum of the obtained porous film shows a broad absorption around 440 nm, confirming the formation of the conjugated polypyrrole (
Fig. 1c)[
14]. FTIR studies reveal that the characteristic C-H in-plane deformation bands of the pyrrole ring at 1282 cm
-1 and 1061 cm
-1 disappeared after polymerization process (Fig. S4 in Supporting information), further indicating the occurrence of the C-C coupling between pyrrole units [
15]. Importantly, we found that the characteristic bands of phenylalanine moiety at 1722 cm
-1(carboxyl), 1640 cm
-1 (amide Ⅰ), 1610 cm
-1 (C = C stretching), 1535 cm
-1 (amide Ⅱ), 1350 cm
-1 (C-N stretching) and 1250 cm
-1 (amide Ⅲ) maintain, and withstood the used oxidative polymerization process [
16]. Also, the comparison of the N 1s XPS spectrum of the as-casting film with that of the obtained porous film verifies the successful formation of polypyrrole and the correct incorporation of the phenylalanine functional group in the resultant porous film. As shown in Fig. S5 (Supporting information), the performed polymerization led to the shift of N 1s position of pyrrole unit from 400 eV to 399.7 eV, and in contrast the N 1s position of phenylalanine moiety is unchanged at 400.5 eV. Additionally, the presence and accessibility of phenylalanine moieties decorated on the created pore wall is electrochemically evidenced as a gating membrane using K
3[Fe(CN)
6] as a redox probe (
Fig. 1d). When the phenylalanine moieties are altered from neutral (COOH) to deprotonated state (COO
-), correspondingly the change of the pore state from opening to closed was detected toward [Fe(CN)
6]
3- because of a strong electrostatic repulsion for the negative probe.