![](/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:
- 15:565da8e90073
- Parent:
- 14:682bdfcff46a
--- a/acceler_sensor.cpp Tue Jan 17 23:48:14 2017 +0000 +++ b/acceler_sensor.cpp Wed Jan 18 01:08:33 2017 +0000 @@ -82,8 +82,8 @@ rawdata[2] = buffer[5]<<8 | buffer[4]; data[0] = rawdata[0]*0.004; data[1] = rawdata[1]*0.004; - //float x = 0.004*data[0]; - //float y = 0.004*data[1]; + + pc.printf("x = %+1.2fg\t y = %+1.2fg\n\r", data[0],data[1]); //Just grabbed from SPI code. Not formatted right