Subversion Repositories yaws

Rev

Rev 15 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 16
Line 1... Line 1...
1
#!/usr/bin/env python3
1
#!/usr/bin/python3
2
# -*- coding: utf-8 -*-
2
# -*- coding: utf-8 -*-
3
#
3
#
4
#  sensors/tph.py
4
#  sensors/tph.py
5
#  
5
#  
6
#  Copyright 2020 Ron Wellsted <ron@wellsted.org.uk>
6
#  Copyright 2020 Ron Wellsted <ron@wellsted.org.uk>
Line 22... Line 22...
22
#  
22
#  
23
#  
23
#  
24
import smbus2
24
import smbus2
25
import bme280
25
import bme280
26
from sensors import i2cbus, bme280_address
26
from sensors import i2cbus, bme280_address
-
 
27
import w1thermsensor
Line 27... Line 28...
27
 
28
 
28
def __init__():
29
def __init__():
29
    if bme280_address is not None:
30
    if bme280_address is not None:
30
        bus = smbus2.SMBus(i2cbus)
31
        bus = smbus2.SMBus(i2cbus)