Pyfirmata2

Latest version: v2.5.0

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

Scan your dependencies

Page 1 of 2

2.5.0

Attempts to do polling of inputs have already been generating warnings for the last 3 years that this is deprecated. This behaviour has now been changed to raising an exception. Thus any read() which is on an input will raise an exception.

2.4.2

Demos for PWM and servos have been added.
The documentation of the Pin class has been extended and improved.
Also the read command from the Pin class will generate a warning when reading from a digital or analogue input pin urging the user to use an event handler instead.

2.4.0

The digital inputs now also have callback functions which are called whenever there is a state change at a digital input. Also the blink example has been changed to a timer based approach.
This release got rid of any legacy delay/loop code and it's now 100% event driven.

2.3.0

There is now also an option to enable the pullup resistor on a digital pin by specifying 'u' instead of 'i'. Thanks, benjie-git for submitting a pull request adding this feature.

2.2.0

The firmata sketch allows now up to 1kHz. I've removed the 100Hz limit so that the sampling interval can be called with down to 1ms. However, it's highly recommended to check if the sampling rate can be actually achieved.

2.1.1

gastonfeng pointed out that sometimes the serial driver won't populate .vid so the autodetect function won't find the serial port. That's been changed to .device which is def set by the serial driver.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.