(self,timeout=1)
| 29 | self.scrollable = True |
| 30 | |
| 31 | def serial_bytes_available(self,timeout=1): |
| 32 | # Does the same function as supervisor.runtime.serial_bytes_available |
| 33 | spoll = select.poll() |
| 34 | spoll.register(stdin,select.POLLIN) |
| 35 | |
| 36 | retval = spoll.poll(timeout) |
| 37 | spoll.unregister(stdin) |
| 38 | |
| 39 | if not retval: |
| 40 | retval = 0 |
| 41 | else: |
| 42 | retval = 1 |
| 43 | |
| 44 | return retval |
| 45 | |
| 46 | def read_keyboard(self,num): |
| 47 | # Does the same function as sys.stdin.read(num), blocking read |
no outgoing calls
no test coverage detected