From 05d4b8cf50685db683dd48d7d3037da868385a0a Mon Sep 17 00:00:00 2001 From: ATMakersBill Date: Tue, 9 Oct 2018 22:50:59 -0400 Subject: Added Documentation for the serial_bytes_available attribute --- shared-bindings/supervisor/Runtime.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shared-bindings') diff --git a/shared-bindings/supervisor/Runtime.c b/shared-bindings/supervisor/Runtime.c index 1cf2a3548..27b62abd4 100755 --- a/shared-bindings/supervisor/Runtime.c +++ b/shared-bindings/supervisor/Runtime.c @@ -53,6 +53,12 @@ //| //| Returns the USB serial communication status (read-only). //| +//| .. attribute:: runtime.serial_bytes_available +//| +//| Returns the whether any bytes are available to read +//| on the USB serial input. Allows for polling to see whether +//| to call the built-in input() or wait. (read-only) +//| //| .. note:: //| //| SAMD: Will return ``True`` if the USB serial connection -- cgit v1.2.3