CPS-Lab* / Mbed 2 deprecated lab6

Dependencies:   ADXL362 mbed MPL3115A2

Files at this revision

API Documentation at this revision

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) {