You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This config file expects one argument for "color":"args": {"color": null} as a hex color code
The default null value will be overwritten with the argument you entered
-a 0000FF
Presets
--off
Turns all LED's off
led --off
--color
Sets LED's a static color until keyboard interrupt
led --color 00FF00
Alternatively, choose preset colors listed in /raspledstrip/colorPresets.pyled --color RED
--rainbow
Plays rainbow animation until keyboard interrupt
led --rainbow
Any number of these args can be combined to customize your config files
led -f actions/color.json -a FF0000 -l 0 -d 3600
The CLI args are meant for modifying config files with a single action, config files with multiple actions should have all their respective args hard-coded and should only include the file argument in the CLI
led /mydir/multi-action.json
Config File
The config file is a list of actions
Each action includes the following attributes:
duration
Duration of script in seconds
loops
Number of loops
action
Action type
TO-DO: add more actions to CLI
args
Required arguments for the respective action (name-sensitive)
Set to empty: "args": {} for actions with no arguments
TO-DO: define and document action names for respective actions
Action types
off
Turns all LED's off
color
Sets LED's a static color
Turns off after execution
Args
color
Hexadecimal color code: "args": {"color": "FF0000"}
rainbow
LED's change color from end-to-end in a rainbow sequence
Some LED strips do not have an RGB color scheme, and thus will display unexpected colors
To choose the correct color scheme for you LED strip, edit /raspledstrip/ledstrip.py
Replace self.c_order = ChannelOrder.RGB with your color scheme i.e. self.c_order = ChannelOrder.GRB
Master Brightness
You may find your RGB strip is too bright. To choose a master brightness, edit /raspledstrip/ledstrip.py
Replace self.masterBrightness = 1.0 with your preferred brightness i.e. self.masterBrightness = 0.5
Contributing
If you wish to contribute to the project (add more actions, add more example .JSON configs, improve stability, etc.) please submit a pull request! Thanks!