2.4 inch tft lcd , hmc5883l, digital compass using arduino. need help.

hey, friends.

i want to make digital compass i have hmc 5883l magneto sensor. i want to indicate the direction with arrow. the image is attached here. tft shield photo is also attached it has white background LEDs.

kindly help me with code and connections.

thanks

compass.jpg

tft s.jpg