summaryrefslogtreecommitdiff
path: root/decoders/rgb_led_ws281x/pd.py
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2023-07-29 17:26:48 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2023-07-29 21:29:14 +0200
commite6962b3fe8260382bb9932a1cfdd7ee7090ce267 (patch)
tree139944518829fe6ba0e803a278b2a46912588d65 /decoders/rgb_led_ws281x/pd.py
parent3378f524a1b720cdcedb10089ad4f9bacc33cb4f (diff)
downloadlibsigrokdecode-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.py2
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):