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

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

src/b/r/BrickPython-0.4/ExamplePrograms/TrialApp.py   BrickPython(Download)
 
from BrickPython.TkApplication import TkApplication
from BrickPython.Sensor import Sensor, TouchSensor, LightSensor,\
    UltrasonicSensor
import logging

src/b/r/BrickPython-0.4/ExamplePrograms/MotorController.py   BrickPython(Download)
from BrickPython.TkApplication import TkApplication
from BrickPython.Motor import PIDSetting
from BrickPython.Sensor import Sensor
import logging
 

src/b/r/BrickPython-0.4/ExamplePrograms/DoorControl.py   BrickPython(Download)
 
from BrickPython.TkApplication import TkApplication
from BrickPython.Sensor import Sensor
import logging
 

src/b/r/BrickPython-0.4/test/TestSensor.py   BrickPython(Download)
import unittest
from BrickPython.BrickPi import PORT_1
from BrickPython.Sensor import Sensor, TouchSensor, UltrasonicSensor, LightSensor
import TestScheduler
 
class TestSensor(unittest.TestCase):
    'Tests for the Sensor classes'
 
    def testSensor(self):
        sensor = Sensor( PORT_1 )

src/b/r/BrickPython-0.4/test/TestBrickPiWrapper.py   BrickPython(Download)
from BrickPython.BrickPi import BrickPi, PORT_1, TYPE_SENSOR_ULTRASONIC_CONT,\
    TYPE_SENSOR_RAW
from BrickPython.Sensor import Sensor
import unittest