I know embedded systems and work with them on a daily basis so this shouldn't be so painful.
I'm using a Mac with the latest OS. I have no problems with the Flora board.
When trying to upload sketches to my CPE I get errors of missing include files.
I reinstalled the Arduino IDE and now I get an error that my board needs to be defined in the board.h file.
I've already deleted the hidden files that are created when running Arduino IDE, which is a poor design choice if you want to teach beginners, and reinstalled Arduino.
What is going on with these boards?
I haven't been able to upload any sketches via the IDE since I got the board.
I'm trying to be positive but the overall experience has been frustrating when you assume this is for learning on your own.
Compile Errors Uploading Sketch to Circuit Playground Expres
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- udenjoe
- Posts: 13
- Joined: Thu Mar 28, 2013 12:18 am
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Compile Errors Uploading Sketch to Circuit Playground Ex
Have you installed the board support package as shown in the tutorial?
https://learn.adafruit.com/adafruit-cir ... rduino-ide
https://learn.adafruit.com/adafruit-cir ... rduino-ide
- udenjoe
- Posts: 13
- Joined: Thu Mar 28, 2013 12:18 am
Re: Compile Errors Uploading Sketch to Circuit Playground Ex
CircuitPlayground made it much easier to do. I will use this going forward. Thank you.
- keithellis
- Posts: 9
- Joined: Thu Mar 06, 2014 4:13 pm
Re: Compile Errors Uploading Sketch to Circuit Playground Ex
I have exactly the same issue. I have followed the tutorial, installed the board support package and can flash the blink sketch, however when I try and flash the switches exampleadafruit_support_mike wrote:Have you installed the board support package as shown in the tutorial?
https://learn.adafruit.com/adafruit-cir ... rduino-ide
Code: Select all
#include <Adafruit_CircuitPlayground.h>
void setup() {
// Initialize the circuit playground
CircuitPlayground.begin();
}
void loop() {
// If the left button is pressed....
if (CircuitPlayground.leftButton()) {
CircuitPlayground.redLED(HIGH); // LED on
} else {
CircuitPlayground.redLED(LOW); // LED off
}
}
Code: Select all
In file included from /Applications/Arduino.app/Contents/Java/libraries/Adafruit_CircuitPlayground/utility/CP_Firmata.h:17:0,
from /Applications/Arduino.app/Contents/Java/libraries/Adafruit_CircuitPlayground/Adafruit_CircuitPlayground.h:23,
from /Users/keithellis/Documents/Arduino/test/test.ino:1:
/Applications/Arduino.app/Contents/Java/libraries/Adafruit_CircuitPlayground/utility/CP_Boards.h:708:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"
#error "Please edit Boards.h with a hardware abstraction for this board"
^
exit status 1
Error compiling for board Adafruit Circuit Playground Express.
Thanks, Keith.
- udenjoe
- Posts: 13
- Joined: Thu Mar 28, 2013 12:18 am
Re: Compile Errors Uploading Sketch to Circuit Playground Ex
The instructions are not valid or incomplete. Use python instead!
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Compile Errors Uploading Sketch to Circuit Playground Ex
The error messages say you're using the Circuit Playground Classic board support package. Check to make sure you're using a Classic, or switch over to the Circuit Playground Express build target.
Please be positive and constructive with your questions and comments.