Skip to content
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

Build error after the "Big Update" #639

Closed
Sufomba opened this issue Apr 29, 2016 · 3 comments
Closed

Build error after the "Big Update" #639

Sufomba opened this issue Apr 29, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@Sufomba
Copy link

Sufomba commented Apr 29, 2016

Hi all,

Before the 'big update' everything was fine, after the 'big update' this error is happening.
The library 'TimedAction' is inside the lib folder.

Atom : 1.7.3
Electron: 0.36.8
Chrome : 47.0.2526.110
Node : 5.1.1

Linux Mint 17.3

Code:

#include <Arduino.h>
#include <TimedAction.h>
//this initializes a TimedAction class that will change the state of an LED every second.
TimedAction checapassoutempo = TimedAction(1000,blink);
//pin / state variables
const byte ledPin = 13;
boolean ledState = false;

void setup(){
  pinMode(ledPin,OUTPUT);
  digitalWrite(ledPin,ledState);
}

void loop(){
  checapassoutempo.check();
  //do something else
}

void blink(){
 ledState ? ledState=false : ledState=true;
 digitalWrite(ledPin,ledState);
}

Error: 'blink' was not declared in this scope <<<<

Fix:
By ivankravetsThe PlatformIO Team
Temporary rename timed_act.ino to timed_act.cpp
Put after all #include this "void blink();"

Thank you guys.

@ivankravets ivankravets added this to the 2.9.1 milestone Apr 29, 2016
@ivankravets ivankravets self-assigned this Apr 29, 2016
ivankravets added a commit that referenced this issue Apr 30, 2016
@alexgorbatchev
Copy link

Same issue on 3.5.0a1

@ivankravets
Copy link
Member

@alexgorbatchev have you resolved your issue?

@alexgorbatchev
Copy link

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants