![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Mini Project 10: Displaying stuff from day 7
Dependencies: DmTouch_UniGraphic UniGraphic mbed
Diff: acceler_sensor.cpp
- Revision:
- 9:0f4c86e7218a
- Parent:
- 8:bbe3e332fe94
- Child:
- 13:b3637adeaa2a
--- a/acceler_sensor.cpp Tue Jan 17 19:30:09 2017 +0000 +++ b/acceler_sensor.cpp Tue Jan 17 20:14:51 2017 +0000 @@ -64,7 +64,7 @@ } void getacceleration (void){ - const int address = 0x53 << 1; + /*const int address = 0x53 << 1; char buffer[6]; int16_t rawdata[3]; i2c_port.write(address); @@ -84,5 +84,5 @@ float y = data[1]; pc.printf("x = %+1.2fg\t y = %+1.2fg\n\r", rawdata[0],rawdata[1]); //Just grabbed from SPI code. Not formatted right i2c_port.stop(); - + */ } \ No newline at end of file