Arduino code ev3

Hi i m a newbie trying to make ev3 works with arduino. I need the codes to control 1 relay connected to arduino.

Please help.