예제 #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)
예제 #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)]