8000 Mistake in SPI documentation example · Issue #406 · eblot/pyftdi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mistake in SPI documentation example #406
Open
@MattHowardCT

Description

@MattHowardCT

There is a small mistake in the SPI documentation in the example "Example: communication with a SPI device and an extra GPIO":

# Get GPIO port to manage extra pins, use A*BUS4 as GPO, A*BUS4 as GPI

Should instead say:

# Get GPIO port to manage extra pins, use A*BUS4 as GPO, A*BUS5 as GPI

Also the example would be clearer if it used parameter names for the set_direction call:

gpio.set_direction(0x30, 0x10)

Would become:

gpio.set_direction(pins=0b0011_0000, direction=0b0001_0000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0