Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name

WLED

Examples
// Blinks the on-board LED
void setup() {
  pinMode(WLED, OUTPUT);
}

void loop() {
  digitalWrite(WLED, HIGH);  // Turn ON the Wiring on-board LED 
  delay(200);
  digitalWrite(WLED, LOW); 
  delay(200);
}

// Prints the pin number where the on-board LED
// is located in your board
void setup() {
  Serial.begin(9600);
  Serial.print("The on-board LED is on pin: ");
  Serial.println(WLED);
}

void loop() {
}
Description Reserved word representing the Wiring on-board LED. On the Wiring boards v1 the on-board LED is on pin 48, on Wiring S board the on-board LED is on pin 15.
Syntax
WLED
Usage Application
Updated on July 07, 2011 11:09:32pm PDT

Creative Commons License