def power(handler: SerialHandler) -> PowerSupply:
    handler._logging = True
    return PowerSupply(handler)
def multi(handler: SerialHandler) -> Multimeter:
    handler._logging = True
    return Multimeter(handler)
Beispiel #3
0
def slave(handler: SerialHandler) -> I2CSlave:
    handler._logging = True
    return I2CSlave(ADDRESS, device=handler)
Beispiel #4
0
def la(handler: SerialHandler) -> LogicAnalyzer:
    handler._logging = True
    return LogicAnalyzer(handler)
Beispiel #5
0
def master(handler: SerialHandler) -> I2CMaster:
    handler._logging = True
    return I2CMaster(device=handler)
Beispiel #6
0
def scope(handler: SerialHandler) -> Oscilloscope:
    handler._logging = True
    return Oscilloscope(handler)
Beispiel #7
0
def wave(handler: SerialHandler) -> WaveformGenerator:
    handler._logging = True
    return WaveformGenerator(handler)
Beispiel #8
0
def pwm(handler: SerialHandler) -> PWMGenerator:
    handler._logging = True
    return PWMGenerator(handler)
Beispiel #9
0
def servo(handler: SerialHandler) -> Servo:
    handler._logging = True
    return Servo("SQ1", PWMGenerator(handler))