Error Compiling Blink sample project

I has using Linkit One board. I has use the latest Arduino 1.6.12. I start the program by right click, Run as Administrator. I try to upload the Blink example but it has error. Below is the error

Blink:29: error: 'LED_BUILTIN' was not declared in this scope

digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)

^

exit status 1
'LED_BUILTIN' was not declared in this scope

May I know what wrong? Please help.

Always show your whole sketch.

.

I use the sample code provided without do any changes. Below is the code

/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.

Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN takes care
of use the correct LED pin whatever is the board used.
If you want to know what pin the on-board LED is connected to on your Arduino model, check
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products

This example code is in the public domain.

modified 8 May 2014
by Scott Fitzgerald

modified 2 Sep 2016
by Arturo Guadalupi
*/

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

I think I found the error, I need to declare the LED_BUILTIN. I declare it as int and set it to 13. Now the LED on board was blink.

Congratulations.

The standard Arduino boards define the LED_BUILTIN macro in the variant file but evidently your board doesn't do so, perhaps because it doesn't have a built-in LED. Previous versions of the Blink example assumed the LED was on pin 13 but recently the developer decided to change it to LED_BUILTIN. This does make some sense because not all boards have the LED on pin 13, for example WeMos D1 Mini is on D4 so this allows Blink to automatically adapt to whatever board it's run on as long as that macro is defined.

If the Linkit One actually has an LED on pin 13 and they didn't define LED_BUILTIN then you should definitely notify the developers(EDIT: Linkit One, not Arduino) to fix that issue.

yes ma frien, you have to click on blink put out and delay

derickloo:
I think I found the error, I need to declare the LED_BUILTIN. I declare it as int and set it to 13. Now the LED on board was blink.

What does the sketch look like now, I have the same problem ..?

byte LEDPin = 13;

void setup() {
  // initialize digital pin LEDPin as an output.
  pinMode(LEDPin, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LEDPin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LEDPin, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}