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

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

src/b/r/BrickPython-0.4/test/TestSensor.py   BrickPython(Download)
        for input, output in { 680: LightSensor.LIGHT, 800: LightSensor.DARK
                              }.items():
            sensor.updateValue( input )
            self.assertEquals( sensor.value(), output )
        self.assertEquals( repr(sensor), "LightSensor 4: 'Dark' (800)")