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
A sketch with Board_MPU_POWER throws an error during compilation against the SensorTag CC1350.
sketch_jun12a:3: error: 'Board_MPU_POWER' was not declared in this scope
pinMode(Board_MPU_POWER, OUTPUT);
^
exit status 1
'Board_MPU_POWER' was not declared in this scope
Adding #include "Board.h" on top of the sketch solves the issue.
Shouldn't Board.h be included automatically by Energia.h?
Sketch
#include "Board.h" // error if omitted
void setup() {
// put your setup code here, to run once:
pinMode(Board_MPU_POWER, OUTPUT);
digitalWrite(Board_MPU_POWER, LOW);
}
void loop() {
// put your main code here, to run repeatedly:
}
The text was updated successfully, but these errors were encountered:
A sketch with
Board_MPU_POWER
throws an error during compilation against the SensorTag CC1350.However,
boards.h
does defineBoard_MPU_POWER
cc13xx-core/variants/CC1350STK/Board.h
Line 191 in 531d693
Adding
#include "Board.h"
on top of the sketch solves the issue.Shouldn't
Board.h
be included automatically byEnergia.h
?Sketch
The text was updated successfully, but these errors were encountered: