adafruit / Adafruit_TinyUSB_Arduino

Arduino library for TinyUSB
MIT License
487 stars 129 forks source link

Pico W support for WIFI #189

Closed fapplin closed 2 years ago

fapplin commented 2 years ago

Will this be updated to support WIFI on the Pico W?

hathach commented 2 years ago

I don't have a picow at the moment, but do you encounter any particular problem running this library on it ?

fapplin commented 2 years ago

I haven't tried it. The Pico W has a Infineon CYW43439 2.4 GHz Wi-Fi chip and I didn't know if it would be compatible with ESP chips.

======================================================================= The price of greatness is responsibility. - Winston Churchill

On Thursday, July 14, 2022 at 10:59:05 AM EDT, Ha Thach ***@***.***> wrote:  

I don't have a picow at the moment, but do you have any problem running this library on it ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hathach commented 2 years ago

It should work as it is still the same rp2040. You can open a new issue if not

fapplin commented 2 years ago

I just got my Pico W. I plugged it in and tried to run the webusb_serial example. I got the following error. This is not a huge deal. I'm actually using the midi host aspect, but would like to have a tiny web server running for commands. This is probably not related to this project.

Arduino: 1.8.19 (Linux), Board: "Raspberry Pi Pico"

/home/frank/Arduino/libraries/Adafruit_TinyUSB_Library/examples/WebUSB/webusb_serial/webusb_serial.ino: In function 'void loop()': webusb_serial:91:32: error: no matching function for call to 'arduino::UART::read(uint8_t [64], int)'      count = Serial.read(buf, 64);                                 ^ In file included from /home/frank/.arduino15/packages/arduino/hardware/mbed_rp2040/3.1.1/cores/arduino/Arduino.h:102:0,                  from sketch/webusb_serial.ino.cpp:1: /home/frank/.arduino15/packages/arduino/hardware/mbed_rp2040/3.1.1/cores/arduino/Serial.h:51:7: note: candidate: virtual int arduino::UART::read()    int read(void);        ^~~~ /home/frank/.arduino15/packages/arduino/hardware/mbed_rp2040/3.1.1/cores/arduino/Serial.h:51:7: note:   candidate expects 0 arguments, 2 provided exit status 1 no matching function for call to 'arduino::UART::read(uint8_t [64], int)'

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

======================================================================= The price of greatness is responsibility. - Winston Churchill

On Thursday, July 14, 2022 at 12:30:26 PM EDT, Ha Thach ***@***.***> wrote:  

Closed #189 as completed.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hathach commented 2 years ago

please check the readme and select TinyUSB as usb stack in the IDE menu.

Update: I just notice you are using mbed core, this library work best with https://github.com/earlephilhower/arduino-pico . Technically, it could still work with mbed rp2040 core, but more works is needed. Please also checkout the readme.md