def __init__(self): InputModule.__init__(self) UART_Device.__init__(self, "PMSx003") from modules.input.PMSx003.dep.pmsx003 import PMSx003 as PMSx003_drv self.sensor = PMSx003_drv( port=self.uart_port(), pins=("P" + str(self.config().get("pin_rx")), "P" + str(self.config().get("pin_tx"))))
def __init__(self): InputModule.__init__(self) UART_Device.__init__(self, "NEO-6M") from modules.input.NEO_6M.dep.gps_dexter import GROVEGPS self.sensor = GROVEGPS(port=self.uart_port(), pins=("P" + str(self.config().get("pin_rx")), "P" + str(self.config().get("pin_tx"))))
def __init__(self): InputModule.__init__(self) UART_Device.__init__(self, "SPS30") from modules.input.SPS30.dep.SPS30 import SPS30 as SPS30_drv self.sensor = SPS30_drv(port=self.uart_port(), pins=("P" + str(self.config().get("pin_rx")), "P" + str(self.config().get("pin_tx"))))
def __init__(self): InputModule.__init__(self) UART_Device.__init__(self, "SDS011") from modules.input.SDS011.dep.SDS011 import SDS011 as SDS011_drv self.sensor = SDS011_drv(port=self.uart_port(), pins=("P" + str(self.config().get("pin_rx")), "P" + str(self.config().get("pin_tx"))))