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

Comments

Projects
None yet
3 participants
@Sufomba

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 added the bug label Apr 29, 2016

@ivankravets ivankravets self-assigned this Apr 29, 2016

ivankravets added a commit that referenced this issue Apr 30, 2016

ivankravets added a commit that referenced this issue Apr 30, 2016

ivankravets added a commit that referenced this issue Apr 30, 2016

@alexgorbatchev

This comment has been minimized.

alexgorbatchev commented Aug 6, 2017

Same issue on 3.5.0a1

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 20, 2017

@alexgorbatchev have you resolved your issue?

@alexgorbatchev

This comment has been minimized.

alexgorbatchev commented Sep 20, 2017

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment