particle/ramp: new particle, selects one particle from a list

The ramp particle is configured with a tag name and a list of
particles.

At instantiation time, a single particle is selected from the list,
depending on the tag value and it's minimum and maximum values.

I.e. this particle acts kind of like a progress bar.
This commit is contained in:
Daniel Eklöf 2018-12-16 16:20:45 +01:00
parent 2218bd1583
commit 47b36bdd35
4 changed files with 101 additions and 3 deletions

View file

@ -30,6 +30,7 @@ add_executable(f00bar
particles/string.c particles/string.h
particles/list.c particles/list.h
particles/map.c particles/map.h
particles/ramp.c particles/ramp.h
modules/battery/battery.c modules/battery/battery.h
modules/i3/i3.c modules/i3/i3.h