![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Using an accelerometer to move a ball on an LED screen.
Diff: ADXL.cpp
- Revision:
- 1:c436c1b8333b
- Parent:
- 0:708949ec9140
--- a/ADXL.cpp Thu Jan 14 23:22:30 2016 +0000 +++ b/ADXL.cpp Wed Jan 20 21:20:23 2016 +0000 @@ -3,7 +3,7 @@ SPI acc(p11, p12, p13); DigitalOut cs(p10); char buffer[6]; -char tempData[3]; +int16_t tempData[3]; float x, y, z; void accConfig() { @@ -37,4 +37,5 @@ data[0] = x; data[1] = y; data[2] = z; + } \ No newline at end of file