Home | Trees | Indices | Help |
---|
|
This class exposes and implements a proxy API for the pymata_core asyncio API, If your application does not use asyncio directly, this is the API that you should use..
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Constructor for the PyMata3 API
|
Retrieve the last data update for the specified analog pin. It is intended for a polling application.
|
Set the selected PWM pin to the specified value.
|
Retrieve the last data update for the specified digital pin. It is intended for a polling application.
|
Set the specified digital input pin to the provided value
|
Disables analog reporting for a single analog pin.
|
Disables digital reporting. By turning reporting off for this pin, reporting is disabled for all 8 bits in the "port" -
|
This command enables the rotary encoder (2 pin + ground) and will enable encoder reporting. This is a FirmataPlus feature. Encoder data is retrieved by performing a digital_read from pin a (encoder pin 1)
|
This method retrieves the latest encoder data value. It is a FirmataPlus feature.
|
Enables analog reporting for a single analog pin,
|
Enables digital reporting. By turning reporting on for all 8 bits in the "port" - This is part of Firmata's protocol specification.
|
This method will send an extended-data analog write command to the selected pin..
|
A list is returned containing the latch state for the pin, the latched value, and the time stamp [pin_num, latch_state, latched_value, time_stamp] If the the latch state is LATCH_LATCHED, the table is reset (data and timestamp set to zero) It is intended to be used for a polling application.
|
This method requests and returns an analog map.
|
This method retrieves the Firmata capability report
|
A list is returned containing the latch state for the pin, the latched value, and the time stamp [pin_num, latch_state, latched_value, time_stamp] If the the latch state is LATCH_LATCHED, the table is reset (data and timestamp set to zero). It is intended for use by a polling application.
|
This method retrieves the Firmata firmware version
|
This method retrieves the Firmata protocol version
|
This method retrieves a pin state report for the specified pin
|
This method retrieves the PyMata version number
|
This method configures Arduino i2c with an optional read delay time.
|
Retrieve result of last data read from i2c device. i2c_read_request should be called before trying to retrieve data. It is intended for use by a polling application.
|
This method issues an i2c read request for a single read,continuous read or a stop, specified by the read_type. Because different i2c devices return data at different rates, if a callback is not specified, the user must first call this method and then call i2c_read_data after waiting for sufficient time for the i2c device to respond. Some devices require that transmission be restarted (e.g. MMA8452Q accelerometer). Use I2C_READ | I2C_RESTART_TX for those cases.
|
Write data to an i2c device.
|
This method will call the Tone library for the selected pin. It requires FirmataPlus to be loaded onto the arduino If the tone command is set to TONE_TONE, then the specified tone will be played. Else, if the tone command is TONE_NO_TONE, then any currently playing tone will be disabled. It is intended for a future release of Arduino Firmata
|
Send a Firmata reset command
|
This method configures the Arduino for servo operation.
|
This method "arms" an analog pin for its data to be latched and saved in the latching table If a callback method is provided, when latching criteria is achieved, the callback function is called with latching data notification.
|
This method "arms" a digital pin for its data to be latched and saved in the latching table If a callback method is provided, when latching criteria is achieved, the callback function is called with latching data notification.
|
This method sets the pin mode for the specified pin.
|
This method sets the sampling interval for the Firmata loop method
|
Perform an asyncio sleep for the time specified in seconds. This method should be used in place of time.sleep()
|
Shutdown the application and exit
|
Retrieve Ping (HC-SR04 type) data. The data is presented as a dictionary. The 'key' is the trigger pin specified in sonar_config() and the 'data' is the current measured distance (in centimeters) for that pin. If there is no data, the value is set to None. This is a FirmataPlus feature.
|
Configure the pins,ping interval and maximum distance for an HC-SR04 type device. Single pin configuration may be used. To do so, set both the trigger and echo pins to the same value. Up to a maximum of 6 SONAR devices is supported If the maximum is exceeded a message is sent to the console and the request is ignored. NOTE: data is measured in centimeters This is FirmataPlus feature.
|
Configure stepper motor prior to operation. This is a FirmataPlus feature.
|
Move a stepper motor for the number of steps at the specified speed This is a FirmataPlus feature.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Jul 18 11:34:07 2015 | http://epydoc.sourceforge.net |