https://github.com/pibooth/pibooth-extra-lights
Pibooth plugin to manage extra lights (startup, preview, flash...)
https://github.com/pibooth/pibooth-extra-lights
gpio photo-booth photobooth plugin raspberry-pi raspberrypi
Last synced: 3 months ago
JSON representation
Pibooth plugin to manage extra lights (startup, preview, flash...)
- Host: GitHub
- URL: https://github.com/pibooth/pibooth-extra-lights
- Owner: pibooth
- License: gpl-3.0
- Created: 2020-05-07T16:25:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T05:56:36.000Z (over 2 years ago)
- Last Synced: 2025-09-29T01:17:36.411Z (4 months ago)
- Topics: gpio, photo-booth, photobooth, plugin, raspberry-pi, raspberrypi
- Language: Python
- Homepage:
- Size: 364 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
====================
pibooth-extra-lights
====================
|PythonVersions| |PypiPackage| |Downloads|
``pibooth-extra-lights`` is a plugin for the `pibooth`_ application.
It adds 3 extra lights:
- **startup** : light on at ``pibooth`` startup
- **sequence** : light on during the entire capture sequence
- **flash** : light on when the capture is taken
Install
-------
::
$ pip3 install pibooth-extra-lights
Configuration
-------------
Here below the new configuration options available in the `pibooth`_ configuration.
**The keys and their default values are automatically added to your configuration after first** `pibooth`_ **restart.**
The `physical pin numbering `_ is used.
.. code-block:: ini
[CONTROLS]
# Physical GPIO OUT pin to light a LED at pibooth startup (list of pins accepted)
startup_led_pin = 29
# If True, startup LED is lighting by setting pin(s) to HIGH else by setting to LOW
startup_led_active_high = True
# Physical GPIO OUT pin to light a LED during the entire capture sequence (list of pins accepted)
preview_led_pin = 31
# If True, preview LED is lighting by setting pin(s) to HIGH else by setting to LOW
preview_led_active_high = True
# Physical GPIO OUT pin to light a LED when the capture is taken (list of pins accepted)
flash_led_pin = 33
# If True, flash LED is lighting by setting pin(s) to HIGH else by setting to LOW
flash_led_active_high = True
.. note:: Edit the configuration by running the command ``pibooth --config``.
States description
------------------
Here is the `pibooth state sequence `_
updated with the lights activated by this plugin:
.. image:: https://raw.githubusercontent.com/pibooth/pibooth-extra-lights/master/docs/images/state_sequence.png
:align: center
:alt: State sequence
Circuit diagram
---------------
Here is the diagram for hardware connections.
.. image:: https://raw.githubusercontent.com/pibooth/pibooth-extra-lights/master/docs/images/sketch.png
:align: center
:alt: Electronic sketch
.. --- Links ------------------------------------------------------------------
.. _`pibooth`: https://pypi.org/project/pibooth
.. |PythonVersions| image:: https://img.shields.io/badge/python-3.6+-red.svg
:target: https://www.python.org/downloads
:alt: Python 3.6+
.. |PypiPackage| image:: https://badge.fury.io/py/pibooth-extra-lights.svg
:target: https://pypi.org/project/pibooth-extra-lights
:alt: PyPi package
.. |Downloads| image:: https://img.shields.io/pypi/dm/pibooth-extra-lights?color=purple
:target: https://pypi.org/project/pibooth-extra-lights
:alt: PyPi downloads