Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add link to Understanding SPI on the Raspberry Pi from edoc

  • Loading branch information...
commit 64e613b27527052eb0377f160a742610080199a2 1 parent 0c39a74
@klajo authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/wpi.erl
View
4 src/wpi.erl
@@ -399,7 +399,9 @@ spi_data_rw(Channel, WriteData) when (Channel == 0 orelse Channel == 1),
spi_data_rw_nif(Channel, WriteData, byte_size(WriteData)).
-spec spi_setup(wpi_spi_channel(), integer()) -> integer().
-%% @doc Open and set up the SPI device.
+%% @doc Open and set up the SPI device. See Gordon's
+%% [https://projects.drogon.net/understanding-spi-on-the-raspberry-pi/
+%% Understanding SPI on the Raspberry Pi] for more information.
spi_setup(Channel, Speed) when (Channel == 0 orelse Channel == 1),
is_integer(Speed), Speed > 0 ->
spi_setup_nif(Channel, Speed).
Please sign in to comment.
Something went wrong with that request. Please try again.