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/p/y/PyMata-HEAD/examples/pymata_basics.py   PyMata(Download)
 
# set potentiometer pin as an analog input
firmata.set_pin_mode(POTENTIOMETER, firmata.INPUT, firmata.ANALOG)
 
# allow some time for the first data to arrive from the Arduino and be

src/p/y/PyMata-HEAD/examples/pymata_software_data_latch.py   PyMata(Download)
 
# Setup pin A2 for input
firmata.set_pin_mode(POTENTIOMETER, firmata.INPUT, firmata.ANALOG)
 
# Setup pin pin 12 for the switch

src/p/y/PyMata-HEAD/examples/pymata_i2c_read.py   PyMata(Download)
#configure the I2C pins. This code is for the UNO
 
firmata.i2c_config(0, firmata.ANALOG, 4, 5)
 
# read i2c device at address 0x48, with no register specified. Expect 2 bytes to be returned

src/p/y/PyMata-HEAD/examples/pymata_i2c_write/bicolor_display_controller.py   PyMata(Download)
 
        # configure firmata for i2c on an UNO
        self.firmata.i2c_config(0, self.firmata.ANALOG, 4, 5)
 
        # turn on oscillator