From 5e004a96d94112ca5c76b733702e5458baacf70e Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Thu, 1 Aug 2019 09:30:59 -0700 Subject: [PATCH] Don't limit choices in gpio slowdown in Python arg parsing. --- bindings/python/samples/samplebase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/samples/samplebase.py b/bindings/python/samples/samplebase.py index f69ca3033..c4e09d9cf 100755 --- a/bindings/python/samples/samplebase.py +++ b/bindings/python/samples/samplebase.py @@ -21,7 +21,7 @@ def __init__(self, *args, **kwargs): self.parser.add_argument("--led-scan-mode", action="store", help="Progressive or interlaced scan. 0 Progressive, 1 Interlaced (default)", default=1, choices=range(2), type=int) self.parser.add_argument("--led-pwm-lsb-nanoseconds", action="store", help="Base time-unit for the on-time in the lowest significant bit in nanoseconds. Default: 130", default=130, type=int) self.parser.add_argument("--led-show-refresh", action="store_true", help="Shows the current refresh rate of the LED panel") - self.parser.add_argument("--led-slowdown-gpio", action="store", help="Slow down writing to GPIO. Range: 1..100. Default: 1", choices=range(3), type=int) + self.parser.add_argument("--led-slowdown-gpio", action="store", help="Slow down writing to GPIO. Range: 0..4. Default: 1", default=1, type=int) self.parser.add_argument("--led-no-hardware-pulse", action="store", help="Don't use hardware pin-pulse generation") self.parser.add_argument("--led-rgb-sequence", action="store", help="Switch if your matrix has led colors swapped. Default: RGB", default="RGB", type=str) self.parser.add_argument("--led-pixel-mapper", action="store", help="Apply pixel mappers. e.g \"Rotate:90\"", default="", type=str)