this program is from Franzis tutorial kit for arduino reads an input and outputs to a led
//franzis arduino
// read in button via io-pin
int led=13;
int pin=12;
int value=0;
void setup()
{
pinMode(led, OUTPUT);
pinMode(pin, INPUT);
digitalWrite(pin, HIGH);
}
void loop()
{
value=digitalRead(pin);
digitalWrite(led, value);
it produces a compile error
void does not name a type in function ‘void setup’ in global scope.
can someone tell me what i am missing please
i have registered twice in the past week on the ardunio.cc forum but have not yet been sent an e-mail to activate my account so asking for help on this forum please