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)
            self.addActionCoroutine(self.motor(c).runAtConstantSpeed(180))
        for c in settings:
            self.addSensorCoroutine(self.showChanges(c))
 
    def showChanges(self, sensorId):

src/b/r/BrickPython-0.4/ExamplePrograms/DoorControl.py   BrickPython(Download)
    def __init__(self):
        TkApplication.__init__(self, {'1': Sensor.ULTRASONIC_CONT })
        self.doorLocked = False
        self.addSensorCoroutine( self.openDoorWhenSensorDetected() )