stm32f103c8t6 with w5500 push cayenne
Diff: MPU6050.cpp
- Revision:
- 7:b2f689b5fb63
- Parent:
- 6:5b90f2b5e6d9
--- a/MPU6050.cpp Wed Aug 05 13:15:07 2015 +0000 +++ b/MPU6050.cpp Mon Apr 23 13:43:08 2018 +0000 @@ -34,7 +34,7 @@ //I2C i2c(p9,p10); // setup i2c (SDA,SCL) /* For NUCLEO-F411RE board */ -static I2C i2c(D14,D15); // setup i2c (SDA,SCL) +static I2C i2c(PB_9, PB_8); // setup i2c (SDA,SCL) /* Set initial input parameters */ @@ -147,12 +147,10 @@ if(whoAmI==0x68) { pc.printf("MPU6050 is online... \r\n"); - led2=1; } else { pc.printf("Could not connect to MPU6050 \r\nCheck the connections... \r\n"); - toggler1.attach(&toggle_led1,0.1); // toggles led1 every 100 ms } }