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: ADXL362 mbed MPL3115A2
Revision 8:9c9d58ca2b79, committed 2018-02-22
- Comitter:
- htdoughe
- Date:
- Thu Feb 22 20:42:09 2018 +0000
- Parent:
- 7:446c8e17a945
- Child:
- 9:a14593af628d
- Commit message:
- triggering read on REVID
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Feb 22 20:36:34 2018 +0000
+++ b/main.cpp Thu Feb 22 20:42:09 2018 +0000
@@ -118,7 +118,7 @@
//get register name
char * name = regnames[in]; //GET NAME
ADXL362::ADXL362_register_t reg = (ADXL362::ADXL362_register_t) regids[in];
- int val = (int) adxl362.read_reg_u16(reg); //GET REG VAL
+ uint8_t val = adxl362.read_reg(reg); //GET REG VAL
//print val
printf("0x%01x: %s=0x%01x\r\n", regids[in], name, val);
in++;
@@ -136,7 +136,7 @@
int8_t x,y,z;
int start, length;
start = 0;
- length = 3;
+ length = 5;
adxl362_reg_print(start, length);
while(1) {