Skip to content

yun does not define LED_BUILTIN #1585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jantje opened this issue Sep 21, 2013 · 1 comment
Closed

yun does not define LED_BUILTIN #1585

jantje opened this issue Sep 21, 2013 · 1 comment
Assignees
Milestone

Comments

@jantje
Copy link

jantje commented Sep 21, 2013

This sketch does not compile on the yun because LED_BUILTIN is not defined.
It works for the UNO.

int led = LED_BUILTIN;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}

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

@ffissore
Copy link
Contributor

Fixed. It'll be available in the next nightly (tomorrow) build and in the next release

@ghost ghost assigned ffissore Sep 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants