Skip to content

Pibooth plugin to manage extra lights (startup, preview, flash...)

License

Notifications You must be signed in to change notification settings

pibooth/pibooth-extra-lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pibooth-extra-lights

Python 3.6+ PyPi package PyPi 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.

[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:

State sequence

Circuit diagram

Here is the diagram for hardware connections.

Electronic sketch