We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 104bfe6 + 8d9a85c commit 38d0952Copy full SHA for 38d0952
pyftdi/doc/api/spi.rst
@@ -58,9 +58,9 @@ Example: communication with a SPI device and an extra GPIO
58
# Get a SPI port to a SPI slave w/ /CS on A*BUS3 and SPI mode 0 @ 12MHz
59
slave = spi.get_port(cs=0, freq=12E6, mode=0)
60
61
- # Get GPIO port to manage extra pins, use A*BUS4 as GPO, A*BUS4 as GPI
+ # Get GPIO port to manage extra pins, use A*BUS4 as GPO, A*BUS5 as GPI
62
gpio = spi.get_gpio()
63
- gpio.set_direction(0x30, 0x10)
+ gpio.set_direction(pins=0b0011_0000, direction=0b0001_0000)
64
65
# Assert GPO pin
66
gpio.write(0x10)
0 commit comments