Skip to content

Commit

Permalink
Merge pull request #23 from johan162/master
Browse files Browse the repository at this point in the history
Update to set explicit SPI frequency
  • Loading branch information
tompreston committed Nov 20, 2017
2 parents 546b0b1 + 6098a59 commit ff3cd93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pifacecommon/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def spisend(self, bytes_to_send):
transfer = spi_ioc_transfer(
tx_buf=ctypes.addressof(wbuffer),
rx_buf=ctypes.addressof(rbuffer),
len=ctypes.sizeof(wbuffer)
len=ctypes.sizeof(wbuffer),
speed_hz=ctypes.c_uint32(100000)
)

if self.spi_callback is not None:
Expand Down
2 changes: 1 addition & 1 deletion pifacecommon/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.2.0'
__version__ = '4.2.1'

1 comment on commit ff3cd93

@feanor12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something went wrong with the version, I think. Looking at the release of version 4.2.1 I see no speed fix.

Please sign in to comment.