A library to read data from the Triple Axis Accelerometer Breakout - MMA8452Q from Sparkfun.

Fork of AccelSensor by David Gronlund

Files at this revision

API Documentation at this revision

Comitter:
fjaviercifuentes
Date:
Fri Jan 19 02:37:07 2018 +0000
Parent:
0:7dd118f48b1b
Commit message:
Exigido para Publish

Changed in this revision

AccelSensor.h Show annotated file Show diff for this revision Revisions of this file
diff -r 7dd118f48b1b -r 620548ead4d9 AccelSensor.h
--- a/AccelSensor.h	Thu Dec 06 17:50:14 2012 +0000
+++ b/AccelSensor.h	Fri Jan 19 02:37:07 2018 +0000
@@ -14,7 +14,7 @@
 #define XYZ_DATA_CFG 0x0E //14
 #define WHO_AM_I 0x0D //13
 #define CTRL_REG1 0x2A //42
-#define GSCALE 2 // Sets full-scale range to +/-2, 4, or 8g. Used to calc real g values.
+#define GSCALE 8 // Sets full-scale range to +/-2, 4, or 8g. Used to calc real g values.
 
 class AccelSensor {
 public: