Evgenii KURYLIN / X_NUCLEO_COMMON

Dependents:   VL53L0X

Files at this revision

API Documentation at this revision

Comitter:
evgeniik
Date:
Fri Jul 17 09:35:32 2020 +0000
Parent:
22:21096473f63e
Commit message:
Changed for AIMergence

Changed in this revision

DevI2C/DevI2C.h Show annotated file Show diff for this revision Revisions of this file
--- a/DevI2C/DevI2C.h	Tue Aug 08 14:37:26 2017 +0000
+++ b/DevI2C/DevI2C.h	Fri Jul 17 09:35:32 2020 +0000
@@ -103,9 +103,12 @@
     int i2c_read(uint8_t* pBuffer, uint8_t DeviceAddr, uint8_t RegisterAddr,
                  uint16_t NumByteToRead) {
         int ret;
-
+        
+        //Timer t;
+        //t.start();
         /* Send device address, with no STOP condition */
         ret = write(DeviceAddr, (const char*)&RegisterAddr, 1, true);
+        //t.stop(); printf("In bib : t = %f s\n", t.read());
         if(!ret) {
             /* Read data, with STOP condition  */
             ret = read(DeviceAddr, (char*)pBuffer, NumByteToRead, false);