syahirah:
even though its in C, i m not sure how to convert it into arduino type of code.. so please help me out here thanx...
Post the code (in code tags or attach it) or link to it and someone here may be able to convert it if it's not using PIC microcontroller specific hardware abilities.