read ALL lines if available
Minor fixes
Fixed README.md link
Usage: dimd [OPTION...]
A program to control an 8 channel AC dimmer board. Once running, this program
reads 'CHANNEL BRIGHTNESS' lines from STDIN where CHANNEL is 0-7 and BRIGHTNESS
is 0-100. An EOF (Ctrl-D) will end the program.
Not all loads act dependably if the TRIAC is fired too soon before or after a
zero crossing. You can narrow the range used with the START and END options.
There new range will still split into 100 levels.
-e, --end=END End of effective range (when the lights turn off
with start=0 and end=100). Defaults to 75.
-p, --pins=PIN_MAPPING Comma separated list of pins (BCM) mapping to
SYNC,CH0,CH1,CH2,CH3,CH4,CH5,CH6,CH7. Defaults to
2,3,4,17,27,22,10,9,11
-s, --start=START Start of effective range (when the lights turn on
with start=0 and end=100). Defaults to 25.
-v, --verbose Produce more output
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
Report bugs to ryan@using.tech.
KRIDA Electronics 8CH AC Light Dimmer Module Controller Board V3
Make sure you have the libgpiod-dev
package installed and run ./make.sh