diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-07-29 17:26:48 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2023-07-29 21:29:14 +0200 |
commit | e6962b3fe8260382bb9932a1cfdd7ee7090ce267 (patch) | |
tree | 139944518829fe6ba0e803a278b2a46912588d65 /decoders/rgb_led_ws281x/pd.py | |
parent | 3378f524a1b720cdcedb10089ad4f9bacc33cb4f (diff) | |
download | libsigrokdecode-e6962b3fe8260382bb9932a1cfdd7ee7090ce267.tar.gz libsigrokdecode-e6962b3fe8260382bb9932a1cfdd7ee7090ce267.zip |
rgb_led_ws281x: default to RGB[W] annotation text order
The earlier default was "RGB" (exactly three components), and users had
to manually pick "RGBW" when white was involved. Change the default to
the automatic "RGB[W]" instead which transparently presents white when
applicable, and doesn't fail when white is not involved.
Diffstat (limited to 'decoders/rgb_led_ws281x/pd.py')
-rw-r--r-- | decoders/rgb_led_ws281x/pd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/rgb_led_ws281x/pd.py b/decoders/rgb_led_ws281x/pd.py index eda762a..099a2ce 100644 --- a/decoders/rgb_led_ws281x/pd.py +++ b/decoders/rgb_led_ws281x/pd.py @@ -91,7 +91,7 @@ class Decoder(srd.Decoder): 'default': 'GRB', 'values': ('BGR', 'BRG', 'GBR', 'GRB', 'RBG', 'RGB', 'RWBG', 'RGBW')}, {'id': 'textorder', 'desc': 'components output order (text)', - 'default': 'RGB', 'values': ('wire', 'RGB[W]', 'RGB', 'RGBW', 'RGWB')}, + 'default': 'RGB[W]', 'values': ('wire', 'RGB[W]', 'RGB', 'RGBW', 'RGWB')}, ) def __init__(self): |