File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ class Adafruit_BME280:
89
89
"""
90
90
91
91
# pylint: disable=too-many-instance-attributes
92
- def __init__ (self , proxy : typing .Union [I2C_Impl , SPI_Impl ]) -> None :
92
+ def __init__ (self , bus_implementation : typing .Union [I2C_Impl , SPI_Impl ]) -> None :
93
93
"""Check the BME280 was found, read the coefficients and enable the sensor"""
94
94
# Check device ID.
95
- self ._proxy = proxy
95
+ self ._bus_implementation = bus_implementation
96
96
chip_id = self ._read_byte (_BME280_REGISTER_CHIPID )
97
97
if _BME280_CHIPID != chip_id :
98
98
raise RuntimeError ("Failed to find BME280! Chip ID 0x%x" % chip_id )
@@ -311,10 +311,10 @@ def _read24(self, register: int) -> float:
311
311
return ret
312
312
313
313
def _read_register (self , register : int , length : int ) -> bytearray :
314
- return self ._proxy .read_register (register , length )
314
+ return self ._bus_implementation .read_register (register , length )
315
315
316
316
def _write_register_byte (self , register : int , value : int ) -> None :
317
- self ._proxy .write_register_byte (register , value )
317
+ self ._bus_implementation .write_register_byte (register , value )
318
318
319
319
320
320
class Adafruit_BME280_I2C (Adafruit_BME280 ):
You can’t perform that action at this time.
0 commit comments