def __init__(self, slave=None, family=0, name="1-Wire"):
     OneWire.__init__(self, slave, family, "TEMP")
     self.name = name
 def __init__(self, slave=None, family=0, name="1-Wire"):
     OneWire.__init__(self, slave, family, "TEMP")
     self.name = name
Beispiel #3
0
 def __init__(self, slave=None):
     OneWire.__init__(self, slave, 0x29, "2408")
     GPIOPort.__init__(self, 8)
     self.portWrite(0x00)
Beispiel #4
0
 def __init__(self, slave=None):
     OneWire.__init__(self, slave, 0x29, "2408")
     GPIOPort.__init__(self, 8)
     self.portWrite(0x00)
Beispiel #5
0
    def __init__(self, slave=None, family=0x29, extra="2408", channelCount=8):
        OneWire.__init__(self, slave, family, extra)
        GPIOPort.__init__(self, channelCount)

        self. __resetFunctions__()
        self.__portWrite__(0xFF) # Turn off output transistors to allow reading