Skip to content

Releases: Tom-Hirschberger/PythonLedControl

Release 0.0.4

05 Oct 09:08
Compare
Choose a tag to compare

This is Release 0.0.4 with the following changes:

  • added an configuration option to choose if button presses will set the gpio pins to a high flag (setup with pull-down resistor) or to a low flag (setup with pull-up resistor)

Release 0.0.3

27 Sep 15:33
Compare
Choose a tag to compare

This is Release 0.0.3 with the following changes:

  • The current status will not be published after every config change, now. This is only needed if more than one source configures the strip and the second source needs to be informed if the first source changes a value. If needed the publishing mechanism can be reactivated via a configuration parameter.
  • There is a new configuration option which controls if the status should be published after the output status of the strip changed. In default mode the status will be published. This is necessary because if the button gets pressed the control module needs to be informed.

Release 0.0.2

25 Sep 14:18
Compare
Choose a tag to compare

This is release 0.0.2 which adds the following features:

  • Now not only WS2801 but also all WS281X led strips are supported

Release 0.0.1

25 Sep 10:34
Compare
Choose a tag to compare

This is the first version of this script which provides to following features:

  • All leds of a WS2801 strip will be switched off during startup
  • The leds can be toggled to a configurable color by pressing one of two buttons
  • If the second button is pressed within a configurable interval after the first button the led strip changes to pong mode
  • After a configurable amount of pong wins per user the strip changes back to normal mode and will be switched off
  • All colors and parameters can be configured before startup with environment variables
  • An MQTT interface is implemented which can be used to change most of the parameters during runtime
  • The MQTT interface connects to a MQTT broker either with or without authentication. If the connection is lost an automatic reconnect is implemented.
  • The current configuration will be published to an MQTT topic if it is triggerd with an MQTT message to a specific topic
  • The strip can be toggled via a MQTT message and publishes the current configuration at the moment it changes the state

About the Pong game:
Pong is a game in which a running light is implemented. Each player is responsible for one end of the strip. In the moment at which the last led is illuminated at the corresponding end of the strip the player needs to press the button to turn around the running light. Each time the light turns around it gets faster. If the player presses the button to early or to late the other player gets a hit. The player which reaches the maximum amount of hits first wins the game.