added completly new version for haslach 2025

This commit is contained in:
fotobox
2025-03-17 03:47:13 +01:00
parent 152832515c
commit 769ab91da8
2333 changed files with 409208 additions and 341 deletions

View File

@@ -0,0 +1,27 @@
SPDX-License-Identifier: BSD-3-Clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,261 @@
Metadata-Version: 2.1
Name: gpiozero
Version: 1.6.2
Summary: A simple interface to GPIO devices with Raspberry Pi.
Home-page: https://github.com/gpiozero/gpiozero
Author: Ben Nuttall
Author-email: ben@bennuttall.com
License: BSD-3-Clause
Keywords: raspberrypi,gpio
Platform: ALL
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Developers
Classifier: Topic :: Education
Classifier: Topic :: System :: Hardware
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: colorzero
Provides-Extra: doc
Requires-Dist: sphinx ; extra == 'doc'
Requires-Dist: sphinx-rtd-theme ; extra == 'doc'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: coverage ; extra == 'test'
Requires-Dist: mock ; extra == 'test'
Requires-Dist: RPi.GPIO ; extra == 'test'
Requires-Dist: pigpio ; extra == 'test'
========
gpiozero
========
A simple interface to GPIO devices with `Raspberry Pi`_, developed and maintained
by `Ben Nuttall`_ and `Dave Jones`_.
.. _Raspberry Pi: https://www.raspberrypi.org/
.. _Ben Nuttall: https://github.com/bennuttall
.. _Dave Jones: https://github.com/waveform80
About
=====
Component interfaces are provided to allow a frictionless way to get started
with physical computing:
.. code:: python
from gpiozero import LED
from time import sleep
led = LED(17)
while True:
led.on()
sleep(1)
led.off()
sleep(1)
With very little code, you can quickly get going connecting your components
together:
.. code:: python
from gpiozero import LED, Button
from signal import pause
led = LED(17)
button = Button(3)
button.when_pressed = led.on
button.when_released = led.off
pause()
You can advance to using the declarative paradigm along with provided
to describe the behaviour of devices and their interactions:
.. code:: python
from gpiozero import OutputDevice, MotionSensor, LightSensor
from gpiozero.tools import booleanized, all_values
from signal import pause
garden = OutputDevice(17)
motion = MotionSensor(4)
light = LightSensor(5)
garden.source = all_values(booleanized(light, 0, 0.1), motion)
pause()
See the chapter on `Source/Values`_ for more information.
.. _Source/Values: https://gpiozero.readthedocs.io/en/stable/source_values.html
The library includes interfaces to many simple everyday components, as well as
some more complex things like sensors, analogue-to-digital converters, full
colour LEDs, robotics kits and more. See the `Recipes`_ chapter of the
documentation for ideas on how to get started.
.. _Recipes: https://gpiozero.readthedocs.io/en/stable/recipes.html
Pin factories
=============
GPIO Zero builds on a number of underlying pin libraries, including `RPi.GPIO`_
and `pigpio`_, each with their own benefits. You can select a particular pin
library to be used, either for the whole script or per-device, according to your
needs. See the section on `changing the pin factory`_.
.. _RPi.GPIO: https://pypi.org/project/RPi.GPIO
.. _pigpio: https://pypi.org/project/pigpio
.. _changing the pin factory: https://gpiozero.readthedocs.io/en/stable/api_pins.html#changing-the-pin-factory
A "mock pin" interface is also provided for testing purposes. Read more about
this in the section on `mock pins`_.
.. _mock pins: https://gpiozero.readthedocs.io/en/stable/api_pins.html#mock-pins
Installation
============
GPIO Zero is installed by default in the Raspberry Pi OS desktop image,
available from `raspberrypi.org`_. To install on Raspberry Pi OS Lite or other
operating systems, including for PCs using remote GPIO, see the `Installing`_
chapter.
.. _raspberrypi.org: https://www.raspberrypi.org/software/
.. _Installing: https://gpiozero.readthedocs.io/en/stable/installing.html
Documentation
=============
Comprehensive documentation is available at https://gpiozero.readthedocs.io/.
Please refer to the `Contributing`_ and `Development`_ chapters in the
documentation for information on contributing to the project.
.. _Contributing: https://gpiozero.readthedocs.io/en/stable/contributing.html
.. _Development: https://gpiozero.readthedocs.io/en/stable/development.html
Issues and questions
====================
If you have a feature request or bug report, please open an `issue on GitHub`_.
If you have a question or need help, this may be better suited to our `GitHub
discussion board`_, the `Raspberry Pi Stack Exchange`_ or the `Raspberry Pi
Forums`_.
.. _issue on GitHub: https://github.com/gpiozero/gpiozero/issues/new
.. _GitHub discussion board: https://github.com/gpiozero/gpiozero/discussions
.. _Raspberry Pi Stack Exchange: https://raspberrypi.stackexchange.com/
.. _Raspberry Pi Forums: https://www.raspberrypi.org/forums/
Python 2 support
================
.. warning::
GPIO Zero 1.6.x is the last to support Python 2. GPIO Zero 2.x will support
Python 3 only.
Contributors
============
- `Alex Chan`_
- `Alex Eames`_
- `Andrew Scheller`_
- `Barry Byford`_
- `Carl Monk`_
- `Claire Pollard`_
- `Clare Macrae`_
- `Dan Jackson`_
- `Daniele Procida`_
- `damosurfer`_
- `David Glaude`_
- `Delcio Torres`_
- `Edward Betts`_
- `Fatih Sarhan`_
- `G.S.`_
- `Ian Harcombe`_
- `Jack Wearden`_
- `Jeevan M R`_
- `Josh Thorpe`_
- `Kyle Morgan`_
- `Linus Groh`_
- `Mahallon`_
- `Maksim Levental`_
- `Martchus`_
- `Martin O'Hanlon`_
- `Mike Kazantsev`_
- `Paulo Mateus`_
- `Phil Howard`_
- `Philippe Muller`_
- `Rick Ansell`_
- `Robert Erdin`_
- `Russel Winder`_
- `Ryan Walmsley`_
- `Schelto van Doorn`_
- `Sofiia Kosovan`_
- `Steve Amor`_
- `Stewart Adcock`_
- `Thijs Triemstra`_
- `Tim Golden`_
- `Yisrael Dov Lebow`_
See the `contributors page`_ on GitHub for more info.
.. _Alex Chan: https://github.com/gpiozero/gpiozero/commits?author=alexwlchan
.. _Alex Eames: https://github.com/gpiozero/gpiozero/commits?author=raspitv
.. _Andrew Scheller: https://github.com/gpiozero/gpiozero/commits?author=lurch
.. _Barry Byford: https://github.com/gpiozero/gpiozero/commits?author=ukBaz
.. _Carl Monk: https://github.com/gpiozero/gpiozero/commits?author=ForToffee
.. _Chris R: https://github.com/gpiozero/gpiozero/commits?author=chrisruk
.. _Claire Pollard: https://github.com/gpiozero/gpiozero/commits?author=tuftii
.. _Clare Macrae: https://github.com/gpiozero/gpiozero/commits?author=claremacrae
.. _Dan Jackson: https://github.com/gpiozero/gpiozero/commits?author=e28eta
.. _Daniele Procida: https://github.com/evildmp
.. _Dariusz Kowalczyk: https://github.com/gpiozero/gpiozero/commits?author=darton
.. _damosurfer: https://github.com/gpiozero/gpiozero/commits?author=damosurfer
.. _David Glaude: https://github.com/gpiozero/gpiozero/commits?author=dglaude
.. _Delcio Torres: https://github.com/gpiozero/gpiozero/commits?author=delciotorres
.. _Edward Betts: https://github.com/gpiozero/gpiozero/commits?author=edwardbetts
.. _Fatih Sarhan: https://github.com/gpiozero/gpiozero/commits?author=f9n
.. _G.S.: https://github.com/gpiozero/gpiozero/commits?author=gszy
.. _Ian Harcombe: https://github.com/gpiozero/gpiozero/commits?author=MrHarcombe
.. _Jack Wearden: https://github.com/gpiozero/gpiozero/commits?author=NotBobTheBuilder
.. _Jeevan M R: https://github.com/gpiozero/gpiozero/commits?author=jee1mr
.. _Josh Thorpe: https://github.com/gpiozero/gpiozero/commits?author=ThorpeJosh
.. _Kyle Morgan: https://github.com/gpiozero/gpiozero/commits?author=knmorgan
.. _Linus Groh: https://github.com/gpiozero/gpiozero/commits?author=linusg
.. _Mahallon: https://github.com/gpiozero/gpiozero/commits?author=Mahallon
.. _Maksim Levental: https://github.com/gpiozero/gpiozero/commits?author=makslevental
.. _Martchus: https://github.com/gpiozero/gpiozero/commits?author=Martchus
.. _Martin O'Hanlon: https://github.com/martinohanlon/commits?author=martinohanlon
.. _Mike Kazantsev: https://github.com/gpiozero/gpiozero/commits?author=mk-fg
.. _Paulo Mateus: https://github.com/gpiozero/gpiozero/commits?author=SrMouraSilva
.. _Phil Howard: https://github.com/gpiozero/gpiozero/commits?author=Gadgetoid
.. _Philippe Muller: https://github.com/gpiozero/gpiozero/commits?author=pmuller
.. _Rick Ansell: https://github.com/gpiozero/gpiozero/commits?author=ricksbt
.. _Robert Erdin: https://github.com/gpiozero/gpiozero/commits?author=roberterdin
.. _Russel Winder: https://github.com/russel
.. _Ryan Walmsley: https://github.com/gpiozero/gpiozero/commits?author=ryanteck
.. _Schelto van Doorn: https://github.com/gpiozero/gpiozero/commits?author=goloplo
.. _Sofiia Kosovan: https://github.com/gpiozero/gpiozero/commits?author=SofiiaKosovan
.. _Steve Amor: https://github.com/gpiozero/gpiozero/commits?author=SteveAmor
.. _Stewart Adcock: https://github.com/gpiozero/gpiozero/commits?author=stewartadcock
.. _Thijs Triemstra: https://github.com/gpiozero/gpiozero/commits?author=thijstriemstra
.. _Tim Golden: https://github.com/gpiozero/gpiozero/commits?author=tjguk
.. _Yisrael Dov Lebow: https://github.com/gpiozero/gpiozero/commits?author=yisraeldov
.. _contributors page: https://github.com/gpiozero/gpiozero/graphs/contributors

View File

@@ -0,0 +1,64 @@
../../../bin/pinout,sha256=MG2kV8UUrvmbJUjD7rliCP6J8gRPgEMeFrSyiXO-j-g,238
gpiozero-1.6.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
gpiozero-1.6.2.dist-info/LICENSE.rst,sha256=tv3Vh_PcOpuMxa2uAJGOP_qQmxCSvU3s9-ixsI-l0Ps,1474
gpiozero-1.6.2.dist-info/METADATA,sha256=YHQBj216E4u0fQ3_L8AiAk9iBJh_wQANcYGjQQ_WooY,9595
gpiozero-1.6.2.dist-info/RECORD,,
gpiozero-1.6.2.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
gpiozero-1.6.2.dist-info/entry_points.txt,sha256=vr8Ohk0-ul8CrE8uHszL8jO8Dc9idwKIK6V6RBJZSRU,728
gpiozero-1.6.2.dist-info/top_level.txt,sha256=eY0E5NV30JrC-UrQZGpXUe_tuWplAuScNI10Pm9_Tf0,21
gpiozero/__init__.py,sha256=iTa348d1Db4zvVbnHZHCKJtB2Atbnuy_dT288aPmB2Q,2767
gpiozero/__pycache__/__init__.cpython-37.pyc,,
gpiozero/__pycache__/boards.cpython-37.pyc,,
gpiozero/__pycache__/compat.cpython-37.pyc,,
gpiozero/__pycache__/devices.cpython-37.pyc,,
gpiozero/__pycache__/exc.cpython-37.pyc,,
gpiozero/__pycache__/fonts.cpython-37.pyc,,
gpiozero/__pycache__/input_devices.cpython-37.pyc,,
gpiozero/__pycache__/internal_devices.cpython-37.pyc,,
gpiozero/__pycache__/mixins.cpython-37.pyc,,
gpiozero/__pycache__/output_devices.cpython-37.pyc,,
gpiozero/__pycache__/spi_devices.cpython-37.pyc,,
gpiozero/__pycache__/threads.cpython-37.pyc,,
gpiozero/__pycache__/tones.cpython-37.pyc,,
gpiozero/__pycache__/tools.cpython-37.pyc,,
gpiozero/boards.py,sha256=GcajC3uxHuvEe9_4Btfmwo8j42YBRSxvNtDLMcYtBFo,107974
gpiozero/compat.py,sha256=zmvg9OiR2m6K1DINaiAPFAoIJa8k2CvH0rVn5upnfrI,4695
gpiozero/devices.py,sha256=qnM1kLyiVJTtv06RyCnQuDpGhF6CoWmWPj3kLH1rq3o,25144
gpiozero/exc.py,sha256=LP2v0_8qS7hHFLi0S9T6dnS9ru2Ae4IoIeIwfjmBJHY,7691
gpiozero/fonts.py,sha256=0V2X6GciBxy3wpkwqaBjgE1aSKqzX7QIHNfPuPeq5uQ,9408
gpiozero/fonts/14seg.txt,sha256=VAzTbA13Wp5C_Nv8Yw8d0DOK181_-4tuZyTC5OjzENc,2711
gpiozero/fonts/7seg.txt,sha256=oWrQeNWba7mglb0Vk_T9bHOMfSMeSDNNcPVH_zvWSKc,1112
gpiozero/input_devices.py,sha256=voV_rzp-Q-q6wBvc-yV9SYobPgo6_1hU5DxBFPkT3Kk,55261
gpiozero/internal_devices.py,sha256=dM711jEHvWrrTmhrWAz3wHbfVyCddp6KXRr05IaRz3E,27038
gpiozero/mixins.py,sha256=nAphtpWO7Qvh1IZdzW5-bnZMYQYNB5HGRM5qAVbLMjs,21623
gpiozero/output_devices.py,sha256=HPo7a4vlDRplTcWdczpFLk9GOtwsOsTd1XbAzVrAyeA,62676
gpiozero/pins/__init__.py,sha256=L0151BYC2GY3AepCJx2sa27Gmu2mbZTm2RbqC8qeBRM,30675
gpiozero/pins/__pycache__/__init__.cpython-37.pyc,,
gpiozero/pins/__pycache__/data.cpython-37.pyc,,
gpiozero/pins/__pycache__/lgpio.cpython-37.pyc,,
gpiozero/pins/__pycache__/local.cpython-37.pyc,,
gpiozero/pins/__pycache__/mock.cpython-37.pyc,,
gpiozero/pins/__pycache__/native.cpython-37.pyc,,
gpiozero/pins/__pycache__/pi.cpython-37.pyc,,
gpiozero/pins/__pycache__/pigpio.cpython-37.pyc,,
gpiozero/pins/__pycache__/rpigpio.cpython-37.pyc,,
gpiozero/pins/__pycache__/rpio.cpython-37.pyc,,
gpiozero/pins/__pycache__/spi.cpython-37.pyc,,
gpiozero/pins/data.py,sha256=KDRmG1LFeOPk1tVz0VKGRshLOAfbfgomCvHBwQx2cU8,77394
gpiozero/pins/lgpio.py,sha256=wYJ19rwZNYs6xIuQZYhQ1WsZHnt2kPcYSx2BV7llVeM,12335
gpiozero/pins/local.py,sha256=AUthjRyMTB0S-JCo4HDquCvfYLP4fD2OHyOO307TB4Y,10041
gpiozero/pins/mock.py,sha256=QsS7c9vXyQu_wE59eQBqCBJzKiG7AwbfHbf5yNtIiwo,17562
gpiozero/pins/native.py,sha256=ag7PNN02UdTQEN2uXg0t34_Ql81AIsW-5k7i1wySWw0,22067
gpiozero/pins/pi.py,sha256=mitV_3DRrcFZfgHTlirUbdesGowS6M5XWzLBSRYx-xE,11425
gpiozero/pins/pigpio.py,sha256=R304uBRqygOVvP6beirsGQxqN0aMRjFz2DStj27Mx1U,21998
gpiozero/pins/rpigpio.py,sha256=InVTUIej-l9-WJg6nZvCbRSSYBk-HpeyYhDa8My5aRk,7417
gpiozero/pins/rpio.py,sha256=YpAFDJaqTphmznw8lM3uOl_75uwIRbtWSjGHUSg4J-4,7260
gpiozero/pins/spi.py,sha256=pkn2EBa8G91X0yRc7N7FMhb1GHUQN5N0FdKxiGig2h4,3564
gpiozero/spi_devices.py,sha256=qc4GDtnPgR7Fad6Uueq1MxumcHh--Il_V5uzX6F5yCI,20572
gpiozero/threads.py,sha256=zrIG-0J38a5C8wOmL9PZC6SALjEup9u-vwiENWm0k38,1763
gpiozero/tones.py,sha256=61H49K56wMN9UME41te1Vcd_MN9G1EzBelSpHN4cvG0,8792
gpiozero/tools.py,sha256=DUxbRs1v-ceFE1hsxjto6fq6gpWAXs71aPwZYIi_V-4,21640
gpiozerocli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
gpiozerocli/__pycache__/__init__.cpython-37.pyc,,
gpiozerocli/__pycache__/pinout.cpython-37.pyc,,
gpiozerocli/pinout.py,sha256=WqeobLo_BTRKe-4bNkjDfxvx-6OgUdhJ_IauV1D3R0c,3839

View File

@@ -0,0 +1,6 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.34.2)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-any

View File

@@ -0,0 +1,21 @@
[console_scripts]
pinout = gpiozerocli.pinout:main
[gpiozero_mock_pin_classes]
mockchargingpin = gpiozero.pins.mock:MockChargingPin
mockpin = gpiozero.pins.mock:MockPin
mockpwmpin = gpiozero.pins.mock:MockPWMPin
mocktriggerpin = gpiozero.pins.mock:MockTriggerPin
[gpiozero_pin_factories]
NativePin = gpiozero.pins.native:NativeFactory
PiGPIOPin = gpiozero.pins.pigpio:PiGPIOFactory
RPIOPin = gpiozero.pins.rpio:RPIOFactory
RPiGPIOPin = gpiozero.pins.rpigpio:RPiGPIOFactory
lgpio = gpiozero.pins.lgpio:LGPIOFactory
mock = gpiozero.pins.mock:MockFactory
native = gpiozero.pins.native:NativeFactory
pigpio = gpiozero.pins.pigpio:PiGPIOFactory
rpigpio = gpiozero.pins.rpigpio:RPiGPIOFactory
rpio = gpiozero.pins.rpio:RPIOFactory

View File

@@ -0,0 +1,2 @@
gpiozero
gpiozerocli