Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MPU9250_SPI by
Revision 13:63853084a545, committed 2016-02-21
- Comitter:
- rllamado
- Date:
- Sun Feb 21 07:26:46 2016 +0000
- Parent:
- 12:620be2376124
- Commit message:
- something
Changed in this revision
MPU9250.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MPU9250.cpp Sat Feb 20 04:02:04 2016 +0000 +++ b/MPU9250.cpp Sun Feb 21 07:26:46 2016 +0000 @@ -2,10 +2,13 @@ kylongmu@msn.com */ -#include <mbed.h> +//#include <mbed.h> #include "MPU9250.h" -mpu9250_spi::mpu9250_spi(SPI& _spi, PinName _cs) : spi(_spi), cs(_cs) {} +mpu9250_spi::mpu9250_spi(SPI& _spi, PinName _cs) : spi(_spi), cs(_cs) +{ + cs = 1; +} unsigned int mpu9250_spi::WriteReg( uint8_t WriteAddr, uint8_t WriteData ) {