From 9e38dd430085e850b7391938903e972287ab81f7 Mon Sep 17 00:00:00 2001 From: eir Date: Sun, 22 Mar 2020 09:01:05 -0700 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index df52b7e..2829b47 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,18 @@ motorMain.hiZHard() ``` ### More details For details on the SPI setup, see [create()](https://github.com/m-laniakea/st_spin/blob/dev/stspin/spin_chain.py#L47) in spin_chain.py. + See [example.py](https://github.com/m-laniakea/st_spin/blob/dev/example.py "example.py"). +Check available [registers](https://github.com/m-laniakea/st_spin/blob/dev/stspin/constants/register.py) and [commands](https://github.com/m-laniakea/st_spin/blob/dev/stspin/constants/command.py). + +**More commands** + +All commands are defined, but some are not implemented, e.g. `GoToDir`. +Currently you would use Command.getPayloadSize(GoToDir) and device._writeCommand() to run it. + **Creating your own spi_transfer function** + You may use your own spi transfer function in place of spidev's xfer2. ``` def custom_spi_transfer(buffer: List[int]) -> List[int]: