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

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

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

src/b/r/BrickPython-0.4/test/TestBrickPiWrapper.py   BrickPython(Download)
    def testSensorSetupBetterScopingSyntax(self):
        bp = BrickPiWrapper( {'1': Sensor.ULTRASONIC_CONT} )
        self.assertEquals( BrickPi.SensorType[PORT_1], TYPE_SENSOR_ULTRASONIC_CONT)
 
    def testSensorSetupWithSensorObject(self):