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

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

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

src/b/r/BrickPython-0.4/ExamplePrograms/DoorControl.py   BrickPython(Download)
 
            logging.info( "Waiting 4 seconds" )
            for i in self.waitMilliseconds( 4000 ):
                if self.doorLocked: break
                yield