pico-examples icon indicating copy to clipboard operation
pico-examples copied to clipboard

wifi scan: Enable USB output

Open jepler opened this issue 3 years ago • 2 comments

It tripped me up that these examples required the use of a serial adapter, rather than working via usb serial.

jepler avatar Sep 01 '22 14:09 jepler

This should be targeted against the develop branch rather than master.

lurch avatar Sep 01 '22 16:09 lurch

Yeah, i mean we haven't really gone thru and made all the examples with USB stdio.

You could try passing -DPICO_STDIO_USB=1 to your cmake build and see what breaks; that should add stdio USB to everything (some things presumably will not work - we would need to at least disable it for the TinyUSB examples), but worth looking at as an option

kilograham avatar Sep 01 '22 19:09 kilograham

It's probably a fair comment that we (or is it just me) wrongly default the examples to using the uart. If anything requires the user to look at the output it should default to usb? This example certainly works with this change but maybe we need to check for other issues like this?

peterharperuk avatar Feb 02 '23 17:02 peterharperuk

It's probably a fair comment that we (or is it just me) wrongly default the examples to using the uart. If anything requires the user to look at the output it should default to usb? This example certainly works with this change but maybe we need to check for other issues like this?

Yes, it would be better if it defaulted to USB rather than Serial UART.

aallan avatar Feb 02 '23 17:02 aallan

https://github.com/raspberrypi/pico-examples/issues/321

peterharperuk avatar Feb 02 '23 18:02 peterharperuk

Closed in favour of the above issue which will deal with the issue

peterharperuk avatar Feb 03 '23 19:02 peterharperuk

Thanks for your attention to this. subscribed to the new bug.

jepler avatar Feb 04 '23 01:02 jepler