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

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

src/p/y/PyMata-HEAD/examples/pymata_ping_config_and_read.py   PyMata(Download)
import time
 
from PyMata.pymata import PyMata
 
# instantiate PyMata
firmata = PyMata("/dev/ttyACM0")

src/p/y/PyMata-HEAD/examples/pymata_i2c_read.py   PyMata(Download)
import time
 
from PyMata.pymata import PyMata
 
 
 
# The PyMata constructor will print status to the console and will return
# when PyMata is ready to accept commands or will exit if unsuccessful
firmata = PyMata("/dev/ttyACM0")

src/p/y/PyMata-HEAD/examples/pymata_basics.py   PyMata(Download)
import time
 
from PyMata.pymata import PyMata
 
 
# The PyMata constructor will print status to the console and will return
# when PyMata is ready to accept commands or will exit if unsuccessful
firmata = PyMata("/dev/ttyACM0")
 
# Retrieve and print Arduino Firmware version information

src/p/y/PyMata-HEAD/examples/pymata_i2c_write/bicolor_display_controller.py   PyMata(Download)
 
 
from PyMata.pymata import PyMata
 
 
        @param brightness: brightness level for the display
        """
        self.firmata = PyMata("/dev/ttyACM0")
 
        self.board_address = address

src/p/y/PyMata-HEAD/examples/pymata_software_data_latch.py   PyMata(Download)
import time
 
from PyMata.pymata import PyMata
 
# some constants
POTENTIOMETER = 2  # this A2, an analog input
BUTTON_SWITCH = 12 # a digital input to read a push button switch
 
# Instantiate PyMata - in this case using the default '/dev/ttyACM0' value.
firmata = PyMata()

src/s/2/s2a_fm-HEAD/Snap!Files/Snap!Mobile/arduino/s2a_fm.py   s2a_fm(Download)
import sys
import logging
from PyMata.pymata import PyMata
import scratch_http_server
from scratch_command_handlers import ScratchCommandHandlers
    try:
        # instantiate PyMata
        firmata = PyMata(com_port)  # pragma: no cover
    except Exception:
        print 'Could not instantiate PyMata - is your Arduino plugged in?'

src/s/2/s2a_fm-HEAD/s2a_fm.py   s2a_fm(Download)
import sys
import logging
from PyMata.pymata import PyMata
import scratch_http_server
from scratch_command_handlers import ScratchCommandHandlers
    try:
        # instantiate PyMata
        firmata = PyMata(com_port)  # pragma: no cover
    except Exception:
        print 'Could not instantiate PyMata - is your Arduino plugged in?'