You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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 variablesconst byte ledPin = 13;
boolean ledState = false;
voidsetup(){
pinMode(ledPin,OUTPUT);
digitalWrite(ledPin,ledState);
}
voidloop(){
checapassoutempo.check();
//do something else
}
voidblink(){
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.
The text was updated successfully, but these errors were encountered:
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:
Fix:
By ivankravetsThe PlatformIO Team
Temporary rename timed_act.ino to timed_act.cpp
Put after all #include this "void blink();"
Thank you guys.
The text was updated successfully, but these errors were encountered: