An electronic, optical or optoelectronic device comprising: a first electrode, a second electrode, and a semiconductor component disposed between the first electrode and the second electrode, the semiconductor component comprising a copolymer having the formula: wherein: each M is an optionally substituted benzofused heteroaryl moiety comprising 1-6 heteroatoms; X is N or CR 3; Y is N or CR 4; each of R 1, R 2, R 3, and R 4 independently is selected from H and -L-R, wherein: L, at each occurrence, independently is selected from O, S, and a covalent bond; and R, at each occurrence, independently is a C 1-40 alkyl group; R 7, at each occurrence, independently is selected from a C 1-40 alkyl group, a C 1-40 haloalkyl group, a C 1-40 alkoxy group, and a C 1-40 alkylthio group; and x and y are real numbers representing mole fractions, wherein 0.1 ≤ x ≤ 0.9, 0.1 ≤ y ≤ 0.9, and the sum of x and y is 1; optionally, wherein the unit comprising x mole fraction of the copolymer and the unit comprising y mole fraction of the copolymer are repeated in a random manner; and further optionally, wherein the copolymer has a degree of polymerization (n) in the range from 10 to 10,000. a first electrode, a second electrode, and a semiconductor component disposed between the first electrode and the second electrode, the semiconductor component comprising a copolymer having the formula: wherein: each M is an optionally substituted benzofused heteroaryl moiety comprising 1-6 heteroatoms; X is N or CR 3; Y is N or CR 4; each of R 1, R 2, R 3, and R 4 independently is selected from H and -L-R, wherein: L, at each occurrence, independently is selected from O, S, and a covalent bond; and R, at each occurrence, independently is a C 1-40 alkyl group; R 7, at each occurrence, independently is selected from a C 1-40 alkyl group, a C 1-40 haloalkyl group, a C 1-40 alkoxy group, and a C 1-40 alkylthio group; and x and y are real numbers representing mole fractions, wherein 0.1 ≤ x ≤ 0.9, 0.1 ≤ y ≤ 0.9, and the sum of x and y is 1; optionally, wherein the unit comprising x mole fraction of the copolymer and the unit comprising y mole fraction of the copolymer are repeated in a random manner; and further optionally, wherein the copolymer has a degree of polymerization (n) in the range from 10 to 10,000. each M is an optionally substituted benzofused heteroaryl moiety comprising 1-6 heteroatoms; X is N or CR 3; Y is N or CR 4; each of R 1, R 2, R 3, and R 4 independently is selected from H and -L-R, wherein: L, at each occurrence, independently is selected from O, S, and a covalent bond; and R, at each occurrence, independently is a C 1-40 alkyl group; L, at each occurrence, independently is selected from O, S, and a covalent bond; and R, at each occurrence, independently is a C 1-40 alkyl group; R 7, at each occurrence, independently is selected from a C 1-40 alkyl group, a C 1-40 haloalkyl group, a C 1-40 alkoxy group, and a C 1-40 alkylthio group; and x and y are real numbers representing mole fractions, wherein 0.1 ≤ x ≤ 0.9, 0.1 ≤ y ≤ 0.9, and the sum of x and y is 1; optionally, wherein the unit comprising x mole fraction of the copolymer and the unit comprising y mole fraction of the copolymer are repeated in a random manner; and further optionally, wherein the copolymer has a degree of polymerization (n) in the range from 10 to 10,000.