Error Compiling tof Board

do not worry about rude guys and gals.

they are so common here.

and replies(supposed to be!) are mostly crap! they want to show that they are experts
but actually most are mediocre crap.

yes you need a SETUP() function.

please check arduino reference how to use this function - always helpul.

for inputs you need an INPUT setup
and for outputs like LED bulbs - you need an OUTPUT setup.

e.g. pinMode(ledBluePin, OUTPUT);
pinMode(micSensorPin, INPUT);

arduino IDE compilation error messages are NO GOOD AT ALL!
its an open source software/hardware.
the errors dont reflect the ACTUAL ERROR.

the error message in your case should read - "missing setup area" or something to that
effect.

i have been using arduino for about an year and sometimes i get
and error with reference to a CORE file error, which i overcome by
running the blank sketch and refreshing the libraries.
somehow this works to get rid of the CORE error!

disregard these nasty fools who mostlly mislead you.

i sincerely wish this will help.

sunilv