Answer
Yes, Tartini did write a composition in a major key. The composition is titled "La Campanella" and is one of the most famous pieces of violin music in the world. It was written in the key of D major and is a virtuoso showpiece that requires a high level of technical skill to perform.