Pin usage: MOSI(D4), MISO(D5), SCK(D3), CS(D6), format(8, 3) Test OK.

Fork of LSM6DS3 by LDSC_Robotics_TAs

Revision:
3:d5307f077753
Parent:
2:c19d384b2896
Child:
4:581a95e9c796
--- a/LSM6DS3.cpp	Tue Feb 23 08:48:56 2016 +0000
+++ b/LSM6DS3.cpp	Thu Feb 25 07:49:16 2016 +0000
@@ -82,7 +82,7 @@
 
             //DigitalOut cs((PinName)chipSelectPin);
             // Maximum SPI frequency is 10MHz, could divide by 2 here:
-            spi_.frequency(5000000);
+            spi_.frequency(1000000);
             // Data is read and written MSb first.
             spi_.format(8,0);
             // Data is captured on rising edge of clock (CPHA = 0)