コード例 #1
0
    def moduleAct(self):
        if self.nowData['lux'] < self.wantData['lux']:
            actuating.led(self)

        if self.nowData['waterLv'] < self.wantData['waterLv']:
            actuating.buzzer(self)

        if self.nowData['ph'] < self.wantData['ph']:
            actuating.pump(self)
コード例 #2
0
ファイル: main.py プロジェクト: tdj02139/ModularHydroponics
def moduleAct():

    if(nowdata['lux'] < wantdata['lux']):
        actuating.led()

    if(nowdata['waterLv'] < wantdata['waterLv']):
        actuating.buzzer()

    if(nowdata['ph'] < wantdata['ph']):
        actuating.valve()