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 __init__(self):
        settings = {'1': LightSensor, '2': TouchSensor, '3': UltrasonicSensor }
        TkApplication.__init__(self, settings)
        self.root.wm_title("Trial running")
        for c in "ABCD":

src/b/r/BrickPython-0.4/ExamplePrograms/MotorController.py   BrickPython(Download)
    def __init__(self):
        TkApplication.__init__(self, {'1': Sensor.ULTRASONIC_CONT })
        self.pidSetting = PIDSetting()
 
    def rotate(self, degrees):

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() )