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

SensorTag CC1350: Board.h Not Included #14

Open
rei-vilo opened this issue Jun 12, 2018 · 0 comments
Open

SensorTag CC1350: Board.h Not Included #14

rei-vilo opened this issue Jun 12, 2018 · 0 comments

Comments

@rei-vilo
Copy link
Member

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

However, boards.h does define Board_MPU_POWER

#define Board_MPU_POWER IOID_12

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: 
  
}
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

1 participant