0

WebUSB.h: no such file
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

WebUSB.h: no such file

by kad3285 on Mon Nov 02, 2020 3:25 pm

I have used circuit playground expresses every year in class, but this year none of them are working. Specifically we are using makecode.com and they're not being detected when plugged in. I am trying to update the Circuit playground firmata. When I verify the code it tells me WebUBS.h: No such fille or directory. I followed a turtorial that said to updated the definition from 200 to 210 (....The WebUSB library provides all the extra low-level USB code necessary for WebUSB support except for one thing: Your device must be upgraded from USB 2.0 to USB 2.1. To do this go into the SDK installation directory and open hardware/arduino/avr/cores/arduino/USBCore.h. Then find the line #define USB_VERSION 0x200 and change 0x200 to 0x210. That's it!...) I am not sure if I know what SDK installation directory is...I just found the pathway in the program files, but even I make the change it tells me I am not allowed to save the change.

Does anyone have ideas?

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by franklin97355 on Tue Nov 03, 2020 1:49 pm

I'll check with the programmers.

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

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 11:01 am

@kad just to clarify you are using MakeCode or Code.org? And are these Express or Classic CircuitPlaygrounds?

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

Re: WebUSB.h: no such file

by kad3285 on Wed Nov 04, 2020 11:32 am

Throughout the year I will use both makecode and code.org. Normally they have worked interchangeably. My advanced students have started their makecode projects and my beginner students will be soon starting code.org. I have tried both interfaces this year and neither recognize the circuit playgrounds. We are having success with microbits, but none of the ciruit playgrounds are working. All of my circuit playgrounds are expresses.

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 11:36 am

ok lets start with makecode since its simpler.
use this guide
https://learn.adafruit.com/makecode/dow ... d-flashing
if you double click the reset button, do you get CPLAYBOOT file?

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

Re: WebUSB.h: no such file

by kad3285 on Wed Nov 04, 2020 12:13 pm

No I don't see clayboot. I can find the circuit playground in my devices and printers menu as "unspecified" but I can't load anything to it.

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by kad3285 on Wed Nov 04, 2020 12:18 pm

When I plug in it flashes all red, then all green. My red light does pulse...but I don't see the rainbow of lights as shown in the video.

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 12:19 pm

weird. what computer are you using? have you tried a different USB cable?

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

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 12:20 pm

if you see all green LEDs and a pulsing red LED it means its connected to your computer. look for the CPLAYBOOT disk drive then, make sure you have permission on that computer to have a disk drive. some school computers do not allow it

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

Re: WebUSB.h: no such file

by kad3285 on Wed Nov 04, 2020 12:35 pm

I don't have a disc drive problem with my hallowing or microbits, so I know I have the right permissions. This only happens with all 5 of my circuit playgrounds. I have tried different cords and usb ports as well. Thoughts?

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 12:38 pm

what computer and OS version are you using?

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

Re: WebUSB.h: no such file

by kad3285 on Wed Nov 04, 2020 12:39 pm

Using a dell laptop. Windows 10, students are using chromebooks. Thank you for troubleshooting this with me!

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 12:43 pm

can you try another computer...just because when the leds are green that means the CPX is saying it found the computer, but the computer is not finding the CPX

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

Re: WebUSB.h: no such file

by kad3285 on Wed Nov 04, 2020 1:03 pm

I tried two other computers. I was able to get one CPX to show up on the other two computer, but my other 4 CPX all turned red and then green on each computer, but did not register "clayboot" on the computers list when plugged in. The one that worked successfully downloaded makecode and showed the lights function according the file.

kad3285
 
Posts: 8
Joined: Mon Nov 02, 2020 3:17 pm

Re: WebUSB.h: no such file

by adafruit2 on Wed Nov 04, 2020 1:06 pm

im mystified, but we can replace them. email support@adafruit for 4 new CPX's

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

Please be positive and constructive with your questions and comments.