code of robot bike
Dependencies: SDFileSystem mbed
Fork of Robot_Bicycle by
Diff: SPI_9dSensor.cpp
- Revision:
- 8:79ca11e0129d
- Parent:
- 4:b0967990e390
- Child:
- 10:3b952ea7fad4
diff -r b8413464d111 -r 79ca11e0129d SPI_9dSensor.cpp --- a/SPI_9dSensor.cpp Sun Jul 10 09:41:33 2016 +0000 +++ b/SPI_9dSensor.cpp Mon Jul 18 03:31:39 2016 +0000 @@ -50,6 +50,7 @@ // wiringPiSetupGpio () ; sensor_CSG = 1; sensor_CSXM = 1; + sensor_LSM9D.frequency(10500000); sensor_LSM9D.format(8, 3); pc.printf("SPI sensor ready.\r\n"); wait_ms(50);