From a1e402de7e094612f749bf10e0e1592c49d79e57 Mon Sep 17 00:00:00 2001 From: Michael Watzko Date: Sun, 17 Feb 2019 14:30:39 +0100 Subject: [PATCH] Add SPI and CS initialisation --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 96b19ed..67cf663 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ Below some really basic usage how I am ca using it: ```rust + let mut spi = ...; // SPI interface to use + let mut cs_w5500 : OutputPin = ...; // chip select + let mut w5500: Option = W5500::with_initialisation( &mut cs_w5500, // borrowed for whole W5500 lifetime &mut spi, // borrowed for call to `with_initialisation` only