Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/r/BrickPython-0.4/ExamplePrograms/TrialApp.py   BrickPython(Download)
    def showChanges(self, sensorId):
        sensor = self.sensor(sensorId)
        while True:
            for i in sensor.waitForChange(): yield
            print sensor
 
    def showSensorValues(self, sensorId):
        sensor = self.sensor(sensorId)

src/b/r/BrickPython-0.4/ExamplePrograms/DoorControl.py   BrickPython(Download)
        '''
        motorA = self.motor('A')
        sensor1 = self.sensor('1')
        motorA.zeroPosition()
        while True: