Use of interrupts example for NMHU ambient computing class Sp2015. added MMA8451Q8 library to use as point of departure.
Dependencies: MMA8451Q8b SLCD mbed
Fork of KL46z_all_interrupt by
Revision 5:630a0dd8455a, committed 2016-02-15
- Comitter:
- scohennm
- Date:
- Mon Feb 15 19:15:57 2016 +0000
- Parent:
- 4:20c499a3f9c9
- Commit message:
- changed library
Changed in this revision
MMA8451Q8.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 20c499a3f9c9 -r 630a0dd8455a MMA8451Q8.lib --- a/MMA8451Q8.lib Wed Feb 10 15:31:24 2016 +0000 +++ b/MMA8451Q8.lib Mon Feb 15 19:15:57 2016 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/scohennm/code/MMA8451Q8b/#c875155f829d +http://developer.mbed.org/users/scohennm/code/MMA8451Q8b/#965d9a564f71
diff -r 20c499a3f9c9 -r 630a0dd8455a main.cpp --- a/main.cpp Wed Feb 10 15:31:24 2016 +0000 +++ b/main.cpp Mon Feb 15 19:15:57 2016 +0000 @@ -98,7 +98,7 @@ sprintf (lcdData,"%x",regData); // Note displaying in hexidecimal LCDMess(lcdData,BLINKTIME); acc.readRegs(REG_WHO_AM_I, ®Data, 1); - sprintf (lcdData,"%x",regData); + sprintf (lcdData,"%d",regData); LCDMess(lcdData,BLINKTIME); while (true) {