Skip to content

Commit d5f0df9

Browse files
committed
Current trio (only)
1 parent c064572 commit d5f0df9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

asyncgpio/gpio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async def __anext__(self):
275275
fd = gpio.lib.gpiod_line_event_get_fd(self._line)
276276
if fd < 0:
277277
raise OSError("line is closed")
278-
await trio.hazmat.wait_readable(fd)
278+
await trio.lowlevel.wait_readable(fd)
279279
self._is_open()
280280
r = gpio.lib.gpiod_line_event_read_fd(fd, ev)
281281
if r != 0:

docs/source/usage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Using AsyncGPIO generally consists of three steps:
88
Accessing the chip, referring to a GPIO line within that chip.
99
and actually using the line for input, output, or monitoring.
1010

11+
AsyncGPIO currently only works with anyio's Trio backend.
12+
1113
Accessing a GPIO chip
1214
---------------------
1315

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
packages=find_packages(),
1515
setup_requires=["setuptools_scm"],
1616
install_requires=[
17-
"trio",
17+
"trio >= 0.15",
1818
"cffi",
1919
"async-generator",
2020
],

0 commit comments

Comments
 (0)