UART write never blocks and doesn't actually write to GPIO pins
c1570 opened this issue · 1 comments
c1570 commented
Writing to the UART never blocks at the moment:
rp2040js/src/peripherals/uart.ts
Line 76 in 61e1d2c
This also means that printf() using pico_stdio_uart is way faster in emulation than in reality quite often (basically whenever the silicon 8 byte TX buffer is exhausted).
Additionally, using the UART doesn't actually change the GPIO pins but only triggers the onByte() callback:
rp2040js/src/peripherals/uart.ts
Line 119 in 61e1d2c
Probably not a big deal but worth documenting anyways.