The present invention relates to compounds of the formula (1) or (2) and to the use thereof in electronic devices, and to electronic devices which comprise these compounds. The invention furthermore relates to the preparation of the compounds of the formula (1) or (2) and to formulations comprising one or more compounds of the formula (1) or (2).