This invention relates to benzopyran derivatives of formula (I) or (II), or pharmaceutically acceptable salts thereof