Commit 51bd500
committed
Add in_waiting property to busio.UART
Add the in_waiting property to match CircuitPython's busio.UART API.
Returns the number of bytes available in the input buffer.
- RP2040 UART: wraps MicroPython's uart.any()
- busio.UART wrapper: checks for in_waiting first, falls back to
any(), raises NotImplementedError if neither is available
Fixes #10461 parent 23d84ee commit 51bd500
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
0 commit comments