Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

SDK • Re: HELLO_USB uses USB, but Blink ... Not

$
0
0
Hello,

Thanks it worked nicely, adding the

Code:

# enable usb output, disable uart output    pico_enable_stdio_usb(blink 1)    pico_enable_stdio_uart(blink 0)
In addition I enjoyed

Code:

 #if LIB_PICO_STDIO_USB        while (!stdio_usb_connected()) {            sleep_ms(100);        }    #endif
since it made the pico to wait until I open the connection :-)
Picotool.exe now works.

From an include point of view, there is only

Code:

#include <stdio.h>#include "pico/stdlib.h"
included.
Without stdio.h it throws
" include '<stdio.h>' or provide a declaration of 'printf' "

From this perspective, I can't really follow the discussion, although I feel that I have to because I need to include some less trivial libraries, such as
hardware_pwm\include\hardware\pwm.h>
hardware_adc\include\hardware\adc.h>
hardware_sync\include\hardware\sync.h>

I think that dealing with errors caused by incompatible libraries is one of the most frustrating tasks. Libraries with the same name in different locations, which are hidden by other libraries, could be an excellent prerequisite for this if you are not sufficiently aware of it.

But for now, it's working—thanks to everyone!

Martin

Statistics: Posted by MartinHill — Fri Jan 30, 2026 7:48 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles