Skip to content

Commit

Permalink
fix: README documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
schang412 committed Oct 5, 2023
1 parent 2ee8ca6 commit 1379908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ To send data into a design with `SpiMaster`, call `write()` or `write_nowait()`.

```python
# TX/RX transaction example
spi_master.write_nowait(0xFFFF)
spi_master.write_nowait([0xFFFF])
await spi_master.wait()
read_bytes = await spi_master.read()
print(read_bytes)

# we can alternatively call (which has equivalent functionality)
await spi_master.write(0xFFFF)
await spi_master.write([0xFFFF])
read_bytes = await spi_masetr.read()
```

Expand Down

0 comments on commit 1379908

Please sign in to comment.