Hi!

I'm sending a patch to add support for the TCS3472x color sensor.

Let me know any problem.

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>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
+##
+
+'''
+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>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
+##
+
+'''
+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

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to