From 2b7d0e2bf5147025e9d76d14e266b9905503b957 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Fri, 2 Dec 2011 06:44:42 +1300 Subject: srd: Changed nunchuk and transitioncounter to new registraion api. --- decoders/nunchuk.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'decoders/nunchuk.py') 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) + -- cgit v1.2.3-70-g09d2