@@ -374,7 +374,7 @@ def _read_bytes(self, sensor_type, address, count, buf):
374
374
buf [0 ] = address & 0xFF
375
375
i2c .write (buf , end = 1 )
376
376
i2c .readinto (buf , end = count )
377
- #print("read from %02x: %s" % (address, [hex(i) for i in buf[:count]]))
377
+ # print("read from %02x: %s" % (address, [hex(i) for i in buf[:count]]))
378
378
379
379
def _write_u8 (self , sensor_type , address , val ):
380
380
if sensor_type == _GYROTYPE :
@@ -385,7 +385,7 @@ def _write_u8(self, sensor_type, address, val):
385
385
self ._BUFFER [0 ] = address & 0xFF
386
386
self ._BUFFER [1 ] = val & 0xFF
387
387
i2c .write (self ._BUFFER , end = 2 )
388
- #print("write to %02x: %02x" % (address, val))
388
+ # print("write to %02x: %02x" % (address, val))
389
389
390
390
391
391
class LSM9DS0_SPI (LSM9DS0 ):
@@ -413,7 +413,7 @@ def _read_bytes(self, sensor_type, address, count, buf):
413
413
buf [0 ] = (address | 0x80 | 0x40 ) & 0xFF
414
414
spi .write (buf , end = 1 )
415
415
spi .readinto (buf , end = count )
416
- #print("read from %02x: %s" % (address, [hex(i) for i in buf[:count]]))
416
+ # print("read from %02x: %s" % (address, [hex(i) for i in buf[:count]]))
417
417
418
418
def _write_u8 (self , sensor_type , address , val ):
419
419
if sensor_type == _GYROTYPE :
@@ -424,4 +424,4 @@ def _write_u8(self, sensor_type, address, val):
424
424
self ._BUFFER [0 ] = (address & 0x7F ) & 0xFF
425
425
self ._BUFFER [1 ] = val & 0xFF
426
426
spi .write (self ._BUFFER , end = 2 )
427
- #print("write to %02x: %02x" % (address, val))
427
+ # print("write to %02x: %02x" % (address, val))
0 commit comments