summaryrefslogtreecommitdiff
path: root/decoders/nunchuk.py
diff options
context:
space:
mode:
authorGareth McMullin <gareth@blacksphere.co.nz>2011-12-02 06:44:42 +1300
committerGareth McMullin <gareth@blacksphere.co.nz>2011-12-02 06:44:42 +1300
commit2b7d0e2bf5147025e9d76d14e266b9905503b957 (patch)
tree7159144b6a6000ada198703824edb37db90177ed /decoders/nunchuk.py
parent67e847fd2185aa5677954dceacf3c279d7a68af1 (diff)
downloadlibsigrokdecode-2b7d0e2bf5147025e9d76d14e266b9905503b957.tar.gz
libsigrokdecode-2b7d0e2bf5147025e9d76d14e266b9905503b957.zip
srd: Changed nunchuk and transitioncounter to new registraion api.
Diffstat (limited to 'decoders/nunchuk.py')
-rw-r--r--decoders/nunchuk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py
index 128b10e..e53d0de 100644
--- a/decoders/nunchuk.py
+++ b/decoders/nunchuk.py
@@ -65,6 +65,7 @@ def sampleiter(data, unitsize):
yield(Sample(data[i:i+unitsize]))
class Decoder():
+ id = 'nunchuk'
name = 'Nunchuk'
longname = 'Nintendo Wii Nunchuk decoder'
desc = 'Decodes the Nintendo Wii Nunchuk I2C-based protocol.'
@@ -183,3 +184,5 @@ class Decoder():
import sigrok
+sigrok.register(Decoder)
+