def __init__(self):
     # Inputs and outputs.
     self.port_1 = _h.Port(
         DIO_A='X1',
         DIO_B='X2',
         DIO_C='X5',
         POW_A='Y8',
         POW_B='Y4',
         POW_C='Y2',
         DAC=1,
         UART=4)  # Jumper required to use either DAC/DIO_C or POW_C.
     self.port_2 = _h.Port(
         DIO_A='X3',
         DIO_B='X4',
         DIO_C='X6',
         POW_A='Y7',
         POW_B='Y3',
         POW_C='Y1',
         DAC=2)  # Jumper required to use either DAC or POW_C.
     self.port_3 = _h.Port(DIO_A='X7', DIO_B='X8', POW_A='Y6', POW_B='Y2')
     self.port_4 = _h.Port(DIO_A='X12', DIO_B='X11', POW_A='Y5', POW_B='Y1')
     self.BNC_1 = 'Y11'
     self.BNC_2 = 'Y12'
     self.DAC_1 = 'X5'
     self.DAC_2 = 'X6'
     self.button_1 = 'X9'
     self.button_2 = 'X10'
     # Set default pullup/pulldown resistors.
     self.set_pull_updown({'up': ['X9', 'X10']})
Esempio n. 2
0
 def __init__(self):
     # Inputs and outputs.
     self.port_1 = _h.Port(DIO_A='Y1', DIO_B='Y4', POW_A='Y7' , POW_B='Y8')
     self.port_2 = _h.Port(DIO_A='Y2', DIO_B='Y5', POW_A='Y9' , POW_B='Y10')
     self.port_3 = _h.Port(DIO_A='Y3', DIO_B='Y6', POW_A='Y11', POW_B='Y12')
     self.BNC_1 = 'X7'
     self.BNC_2 = 'X8'
     self.DAC_1 = 'X5'
     self.DAC_2 = 'X6'
     # Set default pullup/pulldown resistors.
     self.set_pull_updown({'down': ['Y1','Y4','Y2','Y5','Y3','Y6']})
Esempio n. 3
0
 def __init__(self):
     # Inputs and outputs.
     self.port_1 = _h.Port(DIO_A='X1', DIO_B='X2' , POW_A='Y7' , POW_B='Y8' , POW_C='Y11', UART=4)
     self.port_2 = _h.Port(DIO_A='Y3', DIO_B='Y4' , POW_A='X4' , POW_B='X18', POW_C='Y12')
     self.port_3 = _h.Port(DIO_A='X9', DIO_B='X10', POW_A='X7' , POW_B='X19',
                        DIO_C='X5', DAC=1 , I2C=1, UART=1)
     self.port_4 = _h.Port(DIO_A='Y9', DIO_B='Y10', POW_A='X8' , POW_B='X20',
                        DIO_C='X6', DAC=2 , I2C=2, UART=3)
     self.port_5 = _h.Port(DIO_A='Y5', DIO_B='Y6' , POW_A='X21', POW_B='X22')
     self.port_6 = _h.Port(DIO_A='X3', DIO_B='X11' , POW_A='Y1' , POW_B='Y2')        
     self.BNC_1  = 'X12'
     self.BNC_2  = 'X11'
     self.DAC_1  = 'X5'
     self.DAC_2  = 'X6'
     self.button = 'X17'
Esempio n. 4
0
 def __init__(self):
     # Inputs and outputs.
     self.port_1 = _h.Port(DIO_A='W53',
                           DIO_B='W57',
                           POW_A='W16',
                           POW_B='W50',
                           DIO_C='W61')
     self.port_2 = _h.Port(DIO_A='W47',
                           DIO_B='W51',
                           POW_A='W60',
                           POW_B='W22',
                           DIO_C='W49')
     self.port_3 = _h.Port(DIO_A='W45',
                           DIO_B='W43',
                           POW_A='W32',
                           POW_B='W30',
                           DIO_C='W24')
     self.port_4 = _h.Port(DIO_A='W10',
                           DIO_B='W68',
                           POW_A='W25',
                           POW_B='W23',
                           DIO_C='W66')
     self.port_5 = _h.Port(DIO_A='W58',
                           DIO_B='W56',
                           POW_A='W64',
                           POW_B='W62')
     self.port_6 = _h.Port(DIO_A='W65',
                           DIO_B='W71',
                           POW_A='W27',
                           POW_B='W29')
     self.port_7 = _h.Port(DIO_A='W59',
                           DIO_B='W55',
                           POW_A='W46',
                           POW_B='W18',
                           DIO_C='W7',
                           DAC=1,
                           I2C=1)
     self.port_8 = _h.Port(DIO_A='W12',
                           DIO_B='W8',
                           POW_A='W20',
                           POW_B='W26',
                           DIO_C='W6',
                           DAC=2,
                           I2C=2,
                           UART=3)
     self.port_9 = _h.Port(DIO_A='W63',
                           DIO_B='W14',
                           POW_A='W28',
                           POW_B='W34')
     self.port_10 = _h.Port(DIO_A='W19',
                            DIO_B='W17',
                            POW_A='W9',
                            POW_B='W3',
                            UART=4)
     self.port_11 = _h.Port(DIO_A='W15',
                            DIO_B='W11',
                            POW_A='W73',
                            POW_B='W5',
                            UART=2)
     self.port_12 = _h.Port(DIO_A='W54',
                            DIO_B='W52',
                            POW_A='W74',
                            POW_B='W33',
                            UART=1)
     self.button = 'W67'