pyrolab.drivers.arduino.arduino.BaseArduinoDriver#
- class BaseArduinoDriver[source]#
Bases:
ArduinoA 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 to an instrument using internally stored parameters.
close()Close the connection with the arduino.
connect(port[, board])Initialize a connection with the arduino.
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.
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).