You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run sht21.py alone, it completes and prints the proper values. When I run it with the sample in the readme, I get the attribute error. Being quite the noob, I'm not sure exactly how to fix that. Any guidance would be appreciated.
Traceback (most recent call last):
File "wx-02.py", line 2, in
with sht21.SHT21(1) as sht21:
File "/home/pi/wx/sht21.py", line 20, in init
self.bus.write_byte(self._I2C_ADDRESS, self._SOFTRESET)
AttributeError: 'int' object has no attribute 'write_byte'
The text was updated successfully, but these errors were encountered:
When I run sht21.py alone, it completes and prints the proper values. When I run it with the sample in the readme, I get the attribute error. Being quite the noob, I'm not sure exactly how to fix that. Any guidance would be appreciated.
Traceback (most recent call last):
File "wx-02.py", line 2, in
with sht21.SHT21(1) as sht21:
File "/home/pi/wx/sht21.py", line 20, in init
self.bus.write_byte(self._I2C_ADDRESS, self._SOFTRESET)
AttributeError: 'int' object has no attribute 'write_byte'
The text was updated successfully, but these errors were encountered: