Pidevices Exceptions

The exceptions of the library.

exception pidevices.exceptions.PidevicesError

Base class for all exceptions in pidevices.

exception pidevices.exceptions.NotSupportedInterface

Error when an invalid interface name is used.

exception pidevices.exceptions.NotInstalledInterface

Error when there isn’t any supported library installed for the currrent interface.

exception pidevices.exceptions.InvalidHPWMPin

Error with invalid hardware pwm pin.

exception pidevices.exceptions.NotOutputPin

Error when try to use non output pin for an output function.

exception pidevices.exceptions.NotPwmPin

Error when try to use a non pwm pin for a pwm function.

exception pidevices.exceptions.NotInputPin

Error when try to use non input pin for an input function.

exception pidevices.exceptions.InvalidMode

Error when inserting wrong operation mode for cytron lf.

exception pidevices.exceptions.NotConnectedCalPin

Error when trying to calibrate cytron lf without cal pin connected.

exception pidevices.exceptions.MoreValuesThanChannels

Give more values than channels in a servo driver with multiple channels.

exception pidevices.exceptions.NotModZero

Not integral multiple.

exception pidevices.exceptions.OutOfRange

Error when a distance sensor returns a measurment out of it’s range.