When did Leonidas become king of Sparta?

in 490 B.C.