Lab 6?

Fork of ADXL362 by Analog Devices

Revision:
3:cfbb323cbf96
Parent:
2:ea455df926ce
--- a/main.cpp	Wed Feb 21 16:20:45 2018 +0000
+++ b/main.cpp	Wed Feb 21 16:25:48 2018 +0000
@@ -19,10 +19,10 @@
     if (adxl362.read_reg((ADXL362::ADXL362_register_t) 0x00) != 0xAD)
         return(-1);
     for( i = start; i <= end; i++) {
-     if (i == 0x16 || i == 0x17) continue;
+     //0x16 -> 0x1E not used
+     if (i == 0x16) i = 0x1F;
      char name[25];
      uint8_t regval = adxl362.read_reg((ADXL362::ADXL362_register_t) i);
-     //printf("%X = %X\n\r", i, regval);
      switch (regval) { 
         case 0x00:
             strcpy(name,"DEVID_A");