From 62f8cbbc2506d30110d9b9afabe993c45421bbfa Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Fri, 7 Mar 2014 02:19:34 +0100 Subject: [PATCH] Do not set SS pin for the Due Let the Arduino SPI library take care of that --- usbhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbhost.h b/usbhost.h index 172742e5..cf26c1f0 100644 --- a/usbhost.h +++ b/usbhost.h @@ -44,7 +44,7 @@ public: SPI_SS::SetDirWrite(); SPI_SS::Set(); SPI.begin(); - SPI.setClockDivider(BOARD_SPI_DEFAULT_SS, 4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz + SPI.setClockDivider(4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz } #else static void init() {