@@ -301,8 +301,8 @@ def distance_mode(self, mode):
301
301
def roi_xy (self ):
302
302
"""Returns the x and y coordinates of the sensor's region of interest"""
303
303
temp = self ._read_register (_ROI_CONFIG__USER_ROI_REQUESTED_GLOBAL_XY_SIZE )
304
- x = (int .from_bytes (temp ) & 0x0F ) + 1
305
- y = ((int .from_bytes (temp , ' little' ) & 0xF0 ) >> 4 ) + 1
304
+ x = (int .from_bytes (temp , "little" ) & 0x0F ) + 1
305
+ y = ((int .from_bytes (temp , " little" ) & 0xF0 ) >> 4 ) + 1
306
306
307
307
return x , y
308
308
@@ -318,18 +318,18 @@ def roi_xy(self, data):
318
318
optical_center = 199
319
319
320
320
self ._write_register (
321
- _ROI_CONFIG__USER_ROI_CENTRE_SPAD , optical_center .to_bytes (1 ,' little' )
321
+ _ROI_CONFIG__USER_ROI_CENTRE_SPAD , optical_center .to_bytes (1 ," little" )
322
322
)
323
323
self ._write_register (
324
324
_ROI_CONFIG__USER_ROI_REQUESTED_GLOBAL_XY_SIZE ,
325
- ((y - 1 ) << 4 | (x - 1 )).to_bytes (1 ,' little' ),
325
+ ((y - 1 ) << 4 | (x - 1 )).to_bytes (1 ," little" ),
326
326
)
327
327
328
328
@property
329
329
def roi_center (self ):
330
330
"""Returns the center of the sensor's region of interest"""
331
331
temp = self ._read_register (_ROI_CONFIG__USER_ROI_CENTRE_SPAD )
332
- return int .from_bytes (temp , ' little' )
332
+ return int .from_bytes (temp , " little" )
333
333
334
334
@roi_center .setter
335
335
def roi_center (self , center ):
0 commit comments