kopia lustrzana https://github.com/micropython/micropython-lib
11 wiersze
175 B
Python
11 wiersze
175 B
Python
![]() |
import select
|
||
|
import os
|
||
|
|
||
|
|
||
|
ep = select.epoll()
|
||
![]() |
ep.register(0, select.EPOLLIN, (lambda x:x, (0,)))
|
||
![]() |
res = ep.poll(2000)
|
||
|
print(res)
|
||
|
for ev, fd in res:
|
||
|
print(os.read(fd, 256))
|