On Tue, Dec 17, 2019 at 04:36:24PM -0300, Candid Moe wrote: > Hi! > > I'm sending a patch to add support for the TCS3472x color sensor. > > Let me know any problem.
Working on it ;-) > Yours > > Candid Moe > > > > >From c8555149ca47033ffac396d71f51a223a99ffb22 Mon Sep 17 00:00:00 2001 > From: Candid Moe <candid...@gmail.com> > Date: Tue, 17 Dec 2019 16:32:57 -0300 > Subject: [PATCH] Add TCS3472x decoder > > --- > decoders/tcs3472x/__init__.py | 26 ++++++++++++++++++++++++++ > decoders/tcs3472x/pd.py | 26 ++++++++++++++++++++++++++ > 2 files changed, 52 insertions(+) > create mode 100644 decoders/tcs3472x/__init__.py > create mode 100644 decoders/tcs3472x/pd.py > > diff --git a/decoders/tcs3472x/__init__.py b/decoders/tcs3472x/__init__.py > new file mode 100644 > index 0000000..66ef29f > --- /dev/null > +++ b/decoders/tcs3472x/__init__.py > @@ -0,0 +1,26 @@ > +## > +## This file is part of the libsigrokdecode project. > +## > +## Copyright (C) 2019 Candid Moe <candid...@gmail.com> > +## <snip/> > +''' > +TCS3472x is a color light-to-digital converter with IR filter. > + > +This decoder is compatible with the whole TCS3472x family. > +''' > + > +from .pd import Decoder > diff --git a/decoders/tcs3472x/pd.py b/decoders/tcs3472x/pd.py > new file mode 100644 > index 0000000..66ef29f > --- /dev/null > +++ b/decoders/tcs3472x/pd.py > @@ -0,0 +1,26 @@ > +## > +## This file is part of the libsigrokdecode project. > +## > +## Copyright (C) 2019 Candid Moe <candid...@gmail.com> > +## <snip/> > +''' > +TCS3472x is a color light-to-digital converter with IR filter. > + > +This decoder is compatible with the whole TCS3472x family. > +''' > + > +from .pd import Decoder > -- > 2.17.1 > Both files look the same to me. Either use symlink or provide two diffent files. Lurker Back into lurk mode _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel