Pifacecommon

Latest version: v4.2.2

Safety actively analyzes 631073 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

3.1.1

------
- Added IODIR_FALLING_EDGE and IODIR_RISING_EDGE to replace IODIR_ON and
IODIR_OFF respectively. IODIR_ON and IODIR_OFF can still be used in the same
way as before. Falling/Rising Edge are for physical level 1/0, On/Off are for
logical (programmer) level 1/0.

Physical Level (pifacecommon.read_bit):
IODIR_FALLING_EDGE: 1 -> 0
IODIR_RISING_EDGE: 0 -> 1
Logical Level (pifacedigitalio.PiFaceDigital().input_pins[0].value):
IODIR_ON: 0 -> 1
IODIR_OFF: 1 -> 0

Remember that PiFace Digital Inputs are active low:
>>> pifacecommon.read_bit(0, INPUT_PORT)
>>> 1 physical
>>> pifacedigitalio.PiFaceDigital().input_pins[0].value
>>> 0 logical

- Fixed Debian package bug where setup script would not be executed.

3.1.0

------
- Added debouncing with adjustable `settle time`.

3.0.0

------
- Added timeout class (fixing Issue 2) in interrupts.
- Added support for interrupts on multiple boards.
- Interrupts must be enabled/disabled manually. Automatic handling of this
broke interrupts from multiple boards.

2.0.2

------
- Moved version number to pifacecommon/version.py so that it can be read from
setup.py and bin/uninstall.py.
- Updated SPI help link to point to the new docs.
- Moved installation scripts into single file for Debian packaging.

2.0.1

------
- Added version number in source.
- Added uninstall script.

2.0.0

------
- Improved interrupts (different API, check the docs).
- Reduced scope of global variables from package to individual modules.
(Hiding namespaces from the end user is an attempt to simplify the interface
for children. However this package is not intended for that audience
and so messing with the namespaces only confuses things.)

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.