pyrolab.drivers.arduino.arduino.BaseArduinoDriver

pyrolab.drivers.arduino.arduino.BaseArduinoDriver#

class BaseArduinoDriver[source]#

Bases: Arduino

A base class providing pin read/write access for common Arduino boards.

Methods

analog_read(pin)

Tell the arduino to read a value from an analog pin.

autoconnect()

Autoconnect to an instrument using internally stored parameters.

close()

Close the connection with the arduino.

connect(port[, board])

Initialize a connection with the arduino.

detect_devices()

Returns a list of connection parameters for available devices.

digital_read(pin)

Tell the arduino to read a value from a digital pin.

digital_write(pin, value)

Tell the arduino to turn a pin digitally to the inputted value.

ping()

Returns a bool (True) to indicate that the Daemon is alive and can be communicated with.

pwm_write(pin, value)

Tell the arduino to produce a pwm signal on a pin.

pyrolab_version()

Return the version of PyroLab running the device.

servo_write(pin, value)

Tell the arduino to configure a pin to drive a servo to the inputed angle.

set_behavior([instance_mode, instance_creator])

Sets the Pyro5 behavior for the class (modified in place).