Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MMA8451Q8_1 SLCD mbed
Fork of LCD_punch_mtr_8_v5 by
Diff: LCD_punch_mtr8_v5.cpp
- Revision:
- 5:6ec1dac45861
- Parent:
- 4:89ae38dc05a9
- Child:
- 6:c2ff55220a05
--- a/LCD_punch_mtr8_v5.cpp Thu Dec 11 00:40:20 2014 +0000
+++ b/LCD_punch_mtr8_v5.cpp Sat Jan 10 16:48:10 2015 +0000
@@ -43,6 +43,7 @@
#define PROGNAME "LCD_punch_mtr 8 v5\r/n"
#define LCDNAME "PC.V5"
+
//#define PRINTDBUG
// Accelerometer SPI pins
#if defined (TARGET_KL25Z) || defined (TARGET_KL46Z)
@@ -133,7 +134,10 @@
dataTimer.start();
dataTimer.reset();
LCDMess(RSTARTMESS, BLINKTIME);
- // Set 8 g max limit
+// Go into registers ofn Accelerometer, change sensitivity then test.
+// http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8451Q.pdf
+// See page 26
+// Set 8 g max limit
acc.setGLimit(MAX_8G); // For now set to 8g
acc.readRegs(XYZ_DATA_CFG, ®Data, 1);
sprintf (lcdData,"%d",regData);
