0

software problem with Playground Express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

software problem with Playground Express

by joel272 on Wed Sep 13, 2017 7:59 am

I have the Circuit Playground Express. I've tried to use the IR Examples, Infrared_Read,etc., but when I try to verify/upload, I get this error message.

sketch_sep13aRead:27: error: 'class Adafruit_CircuitPlayground' has no member named 'irReceiver'

Arduino: 1.8.3 (Windows 10), Board: "Adafruit Circuit Playground"

C:\Users\lian\Documents\Arduino\sketch_sep13aRead\sketch_sep13aRead.ino: In function 'void setup()':


Can you help? I get the same error message no matter which IR Example I try to use.

joel272
 
Posts: 6
Joined: Wed Sep 13, 2017 7:51 am

Re: software problem with Playground Express

by adafruit_support_rick on Wed Sep 13, 2017 12:16 pm

You need to select Circuit Playground Express as the board type. You have the classic Circuit Playground selected.

adafruit_support_rick
 
Posts: 34607
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: software problem with Playground Express

by joel272 on Wed Sep 13, 2017 3:07 pm

Thanks for trying to help me.

I downloaded the Playground Express board to the Arduino IDE and connected to the correct port.

But when I try to verify the IR Read Example, I get a new error message.



Arduino: 1.8.3 (Windows 10), Board: "Adafruit Circuit Playground Express"

In file included from C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/utility/CP_Firmata.h:17:0,

from C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/Adafruit_CircuitPlayground.h:23,

from C:\Users\lian\AppData\Local\Temp\arduino_modified_sketch_696665\Infrared_read.ino:5:

C:\Program Files (x86)\Arduino\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"

^

Multiple libraries were found for "Adafruit_CircuitPlayground.h"
Used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground
Not used: C:\Users\lian\Documents\Arduino\libraries\Adafruit_Circuit_Playground
exit status 1
Error compiling for board Adafruit Circuit Playground Express.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

joel272
 
Posts: 6
Joined: Wed Sep 13, 2017 7:51 am

Re: software problem with Playground Express

by adafruit_support_rick on Wed Sep 13, 2017 3:51 pm

You seem to have an old version of the CP library in your Arduino program directory:
Code: Select all | TOGGLE FULL SIZE
C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground/utility/CP_Boards.h:708:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"


The compiler should be using the version that's in your documents/Arduino/libraries folder. Not sure why it isn't doing that.

Try updating to the latest library version through the library manager. If it still doesn't work, delete the CP library folder from C:\Program Files (x86)\Arduino\libraries\

adafruit_support_rick
 
Posts: 34607
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: software problem with Playground Express

by joel272 on Thu Sep 14, 2017 7:22 am

I updated the library to version 1.6.8. using the Arduino Library Manager.
Than I deleted the Adafruit file located in the Arduino file of my C drive.

I tried downloading the file again via Adafruit Circuit Playground Express webpage, but nothing succeeds and I continue to get this error message.
Arduino: 1.8.3 (Windows 10), Board: "Adafruit Circuit Playground Express"

Infrared_read:8: error: #error "Infrared support is only for the Circuit Playground Express, it doesn't work with the Classic version"

#error "Infrared support is only for the Circuit Playground Express, it doesn't work with the Classic version"

^

exit status 1
#error "Infrared support is only for the Circuit Playground Express, it doesn't work with the Classic version"

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Previously, I had been using Adafruit Circuit Playground Classic, if that helps.
My Circuit Playground Express worked once, when I used the Example Demo.

I appreciate you trying to help.

Joel

joel272
 
Posts: 6
Joined: Wed Sep 13, 2017 7:51 am

Re: software problem with Playground Express

by adafruit_support_rick on Thu Sep 14, 2017 9:04 am

Ok, that's interesting. The library checks to see if the board type is the CP Express. If it isn't, then it puts out that error.

But you *do* have the CP Express selected. So it's puzzling. I will look into this.

Meanwhile, do you have the latest version of the adafruit SAMD board package installed? You can check this in the Board Manager. Also make sure you have the latest version of the Arduino SAMD package

adafruit_support_rick
 
Posts: 34607
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: software problem with Playground Express

by joel272 on Thu Sep 14, 2017 9:20 am

Hi,

I checked the Board Manager and the Arduino SAMD board is installed. There is no Adafruit SAMD board installed. Board Manager does not show any Adafruit boards installed at all.


Thanks,

joel272
 
Posts: 6
Joined: Wed Sep 13, 2017 7:51 am

Re: software problem with Playground Express

by adafruit_support_rick on Thu Sep 14, 2017 9:47 am

Hmm. It must be installed, since you're able to select the adafruit CPX as board type:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.3 (Windows 10), Board: "Adafruit Circuit Playground Express"


You don't have any adafruit boards in the boards list? Did you configure the adafruit boards URL in Arduino Preferences?

adafruit_support_rick
 
Posts: 34607
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: software problem with Playground Express

by joel272 on Thu Sep 14, 2017 11:40 am

No, I have no adafruit boards in the boards list. However, the Arduino SAMD version that is installed, does include, inter alia, Adafruit Circuit Playground Express.

I did not configure any adafruit boards URL in Arduino Preferences. Where do I find an adafruit board URL?

joel272
 
Posts: 6
Joined: Wed Sep 13, 2017 7:51 am

Re: software problem with Playground Express

by franklin97355 on Thu Sep 14, 2017 12:34 pm


franklin97355
 
Posts: 16532
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: software problem with Playground Express

by adafruit_support_rick on Thu Sep 14, 2017 1:22 pm

No, you're right. You pick up the CP Express from the Arduino boards package.

So, it looks like Arduino has changed some of the compiler symbols, and that's why the sketch thinks that the board is not a CPX.

Change the text in the sketch to this:
Code: Select all | TOGGLE FULL SIZE
#if !defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS)
  #error "Infrared support is only for the Circuit Playground Express, it doesn't work with the Classic version"
#endif

adafruit_support_rick
 
Posts: 34607
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: software problem with Playground Express

by adafruit_support_rick on Thu Sep 14, 2017 1:33 pm

I updated the examples in the library. New version is 1.6.9

adafruit_support_rick
 
Posts: 34607
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: software problem with Playground Express

by joel272 on Thu Sep 14, 2017 3:09 pm

Great job Rick!!

Thank you so much.
Please forward this reply to your supervisor. You deserve an 'atta boy'!

Much thanks,
Joel

joel272
 
Posts: 6
Joined: Wed Sep 13, 2017 7:51 am

Re: software problem with Playground Express

by adafruit2 on Thu Sep 14, 2017 3:12 pm

Thanks rick!!

adafruit2
Site Admin
 
Posts: 15078
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.