]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk/nunchuk.py
srd: Move all protocol docs to __init__.py files.
[libsigrokdecode.git] / decoders / nunchuk / nunchuk.py
index 46bf53cf85ff43753d830e387f2f73e7e1ec0775..f9019050439a359727e2b3c7bd754d818f0d4616 100644 (file)
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-#
-# Nintendo Wii Nunchuk decoder
-#
-
-#
-# TODO: Description
-#
-# http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Nunchuck
-# http://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/
-# https://www.sparkfun.com/products/9281
-#
+# Nintendo Wii Nunchuk protocol decoder
 
 import sigrokdecode as srd
 
@@ -40,6 +30,7 @@ INIT = 3
 INITIALIZED = 4
 
 class Decoder(srd.Decoder):
+    api_version = 1
     id = 'nunchuk'
     name = 'Nunchuk'
     longname = 'Nintendo Wii Nunchuk'
@@ -48,7 +39,8 @@ class Decoder(srd.Decoder):
     license = 'gplv2+'
     inputs = ['i2c']
     outputs = ['nunchuck']
-    probes = [] # TODO
+    probes = []
+    optional_probes = [] # TODO
     options = {}
     annotations = [
         ['TODO', 'TODO'],