]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/nunchuk/pd.py
i2c: Add Python tests.
[libsigrokdecode.git] / decoders / nunchuk / pd.py
index 23f1e85860320fa7042868e7bfb4f24840b590a2..5c719cbd79ccdd18bb827eabbe31ef02889a7516 100644 (file)
@@ -47,12 +47,9 @@ class Decoder(srd.Decoder):
         self.reg = 0x00
         self.init_seq = []
 
-    def start(self, metadata):
-        # self.out_proto = self.add(srd.OUTPUT_PROTO, 'nunchuk')
-        self.out_ann = self.add(srd.OUTPUT_ANN, 'nunchuk')
-
-    def report(self):
-        pass
+    def start(self):
+        # self.out_proto = self.register(srd.OUTPUT_PYTHON)
+        self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def putx(self, data):
         # Helper for annotations which span exactly one I2C packet.