Glimit
Dependencies: MMA8451Q8 SLCD mbed
Fork of LCD_ACC_46_v4-8g by
Revision 5:be56411092f5, committed 2017-03-08
- Comitter:
- mireyarod23
- Date:
- Wed Mar 08 06:04:37 2017 +0000
- Parent:
- 4:6128eb8206ee
- Commit message:
- Glimit;
Changed in this revision
MMA8451Q8.lib | Show annotated file Show diff for this revision Revisions of this file |
lcd_acc_46_v4-8g.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6128eb8206ee -r be56411092f5 MMA8451Q8.lib --- a/MMA8451Q8.lib Wed Feb 22 15:35:58 2017 +0000 +++ b/MMA8451Q8.lib Wed Mar 08 06:04:37 2017 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/scohennm/code/MMA8451Q8/#7812354ef684 +https://developer.mbed.org/users/mireyarod23/code/MMA8451Q8/#a515da97b396
diff -r 6128eb8206ee -r be56411092f5 lcd_acc_46_v4-8g.cpp --- a/lcd_acc_46_v4-8g.cpp Wed Feb 22 15:35:58 2017 +0000 +++ b/lcd_acc_46_v4-8g.cpp Wed Mar 08 06:04:37 2017 +0000 @@ -113,8 +113,10 @@ displayTimer.reset(); dataTimer.start(); dataTimer.reset(); + // change sensititivity experimental - acc.setGLimit(); + acc.setGLimit(0x08); //setting glimit by passing an index + acc.readRegs(XYZ_DATA_CFG, ®Data, 1); sprintf (lcdData,"%d",regData); LCDMess(lcdData,BLINKTIME);