FIRST ftc IR beacon.

Hey guys, I am working on an autonomous program for my FTC teams robot and for this I need an IR beacon. We are using the Lego IR Seeker v2 which needs a 1200 Hz square wave signal. I want to use an Arduino because it is the easiest way even though it is probably overkill. I have some normal IR LEDs and I was wondering if I this code would make the LED do what I need it to.

tone(4,1200);

Is that the only code I would need? Thanks in advance!

Can anyone help?