verylittlewire.device

Very Little Wire device module.

The module provides a Python interface to the Little Wire USB Multi-Tool developed by Ihsan Kehribar.

This file is a direct Python translation of the C/C++ library developed by Ihsan Kehribar <ihsan@kehribar.me> and Omer Kilic <omerkilic@gmail.com>. The C/C++ library was released under the same license. Adam Johnson did the translation based on the C/C++ library version 0.9 for Python 2. This new reimplementation is an effort to port the Python 2 translation to Python 3 and adapt the changes in the C/C++ library from version 0.9 to the latest version 1.2 or higher.

license

MIT, see LICENSE for details.

Module Attributes

VENDOR_ID

USB vendor identifier

PRODUCT_ID

USB product identifier

INPUT

Mode identification number to set a GPIO pin as input.

OUTPUT

Mode identification number to set a GPIO pin as output.

HIGH

State identification number to set a GPIO pin to digital high level.

LOW

State identification number to set a GPIO pin to digital low level.

ENABLE

State identification number to enable internal pull-up resistor.

DISABLE

State identification number to disable internal pull-up resistor.

PIN1

Real hardware port index of well known GPIO pin one (1).

PIN2

Real hardware port index of well known GPIO pin two (2).

PIN3

Real hardware port index of well known GPIO pin three (3).

PIN4

Real hardware port index of well known GPIO pin four (4).

VREF_VCC

Voltage reference identification number to VUSB = 5000mV (USB plug).

VREF_1100mV

Voltage reference identification number to internal 1100mV.

VREF_2560mV

Voltage reference identification number to internal 2560mV.

ADC_PIN3

Real hardware ADC channel index on well known GPIO pin three (3).

ADC_PIN2

Real hardware ADC channel index on well known GPIO pin two (2).

ADC_TEMP_SENS

Real hardware ADC channel index on internal temperature sensor.

ADC0

Channel identification number to ADC channel zero (0), alias to ADC_PIN3.

ADC1

Channel identification number to ADC channel one (1), alias to ADC_PIN2.

ADC2

Channel identification number to ADC channel two (2), alias to ADC_TEMP_SENS.

PWM_FREQ_PS4

Prescaler value to achieve PWM base clock divided by 1024.

PWM_FREQ_PS3

Prescaler value to achieve PWM base clock divided by 256.

PWM_FREQ_PS2

Prescaler value to achieve PWM base clock divided by 64.

PWM_FREQ_PS1

Prescaler value to achieve PWM base clock divided by 8.

PWM_FREQ_PS0

Prescaler value to hold PWM base clock.

PWM_PIN4

Real hardware PWM channel index on well known GPIO pin four (4).

PWM_PIN1

Real hardware PWM channel index on well known GPIO pin one (1).

PWMA

Channel identification number to PWM channel A, alias to PWM_PIN4.

PWMB

Channel identification number to PWM channel B, alias to PWM_PIN1.

PWM1

Channel identification number to PWM channel zero (0), alias to channel A.

PWM2

Channel identification number to PWM channel one (1), alias to channel B.

Classes

Device()

Class to control a LittleWire USB Multi-Tool.