Commit graph

16 commits

Author SHA1 Message Date
Henner Zeller
19b3bfb219 o Remove unneeded space. 2016-10-13 23:18:11 -07:00
Henner Zeller
b68d100ae0 o Next step in avoiding the need to re-compile: make hardware GPIO
mapping choosable at run-time (and hence: via command line flag).
  Now, Adafruit HAT users don't have to recompile.
2016-10-13 12:51:49 -07:00
Henner Zeller
4e36830b07 o Add a dummy-flag --led-help. All it does it to return the flag
parsing with an error, which then typically triggers a usage()
  print in main().
o add missing newline to error message.
2016-09-13 21:57:59 -07:00
Henner Zeller
2c1df4a5cb o Rename hardware pulsing flag to be disable_hardware_pulsing
instead of allow_hardware_pulsing. A little easier to understand and also
  reflects 'an off bit is the default'.
2016-09-13 20:51:05 -07:00
Henner Zeller
ddf446d952 o Separate out flag parsing and creation of matrix into separate
functions to call.
2016-08-23 19:41:00 -07:00
Henner Zeller
16b63b92c5 o Update documentation. 2016-08-22 20:50:25 -07:00
Henner Zeller
810c54f849 o Allow hardware pin pulsing select also to be set programmatically
and via flag.
2016-08-21 20:01:51 -07:00
Henner Zeller
85e707116f o Allow to choose the lsb pwm nanoseconds on the command line. 2016-08-21 17:02:54 -07:00
Henner Zeller
6d26807d88 o Making dropping privileges the default.
o Make it possible to select scan mode programmatically.
2016-08-21 16:24:29 -07:00
Henner Zeller
d5286000ce o add the concept of RuntimeOptions. This contins the daemon, drop-privs
and gpio slowdown values.
o Add gpio slowdown to the values that can be modified programmatically
  and with flags.
o Have the default flags passed into CreateMatrixFromFlags() also be
  an output value, so that the settings read from the flags can be
  used back in the user program.
2016-08-21 15:58:23 -07:00
Henner Zeller
5616d8749b o Parse 'no' in flag for negative boolean flags. 2016-08-21 14:20:36 -07:00
Henner Zeller
b664571c3d o Allow to set a default options for the CreateMatrixFromFlags().
o Allow to set show-refresh-rate, inverse-colors and green-blue
  swap programmatically. That way, nobody has to re-compile just for
  these options, which makes things more easy to distribute as library.
  also: Make these flags.
2016-08-21 12:54:45 -07:00
Henner Zeller
51db6ce6d0 o Better documentation and more flexibility with daemon option. 2016-08-21 10:57:48 -07:00
Henner Zeller
021c08db19 o Show some good practices: setting up signal handler.
o smallish cleanups.
2016-08-20 20:45:41 -07:00
Henner Zeller
7557c40e17 o Add some common runtim options (--led-daemon, --led-drop-privs)
o Add more options for matrix parameters (--led-brightness, --led-pwm-bits)
2016-08-20 19:26:20 -07:00
Henner Zeller
edce0acadb o Initial parsing of matrix command line options. 2016-08-20 17:25:06 -07:00