Exemplo n.º 1
0
def compressor(state=None):
    if state == None:
        return DAQC.getDOUTbyte(0)
    if state == True:
        DAQC.setDOUTbit(0, 0)
    if state == False:
        DAQC.clrDOUTbit(0, 0)
Exemplo n.º 2
0
 def values(self):
     # getDOUTbyte returns a list with one int in it for some dumbass reason
     outport = dp.getDOUTbyte(self._board_address)[0]
     return [bool((outport >> i) & 1) for i in range(self._pincount)]