]> sigrok.org Git - libsigrokdecode.git/blame_incremental - decoders/caliper/__init__.py
uart: handle zero stop bits configuration
[libsigrokdecode.git] / decoders / caliper / __init__.py
... / ...
CommitLineData
1##
2## This file is part of the libsigrokdecode project.
3##
4## Copyright (C) 2020 Tomas Mudrunka <harvie@github>
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; either version 2 of the License, or
9## (at your option) any later version.
10##
11## This program is distributed in the hope that it will be useful,
12## but WITHOUT ANY WARRANTY; without even the implied warranty of
13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14## GNU General Public License for more details.
15##
16## You should have received a copy of the GNU General Public License
17## along with this program; if not, see <http://www.gnu.org/licenses/>.
18##
19
20'''
21This decoder interprets the digital output of cheap generic calipers
22(usually made in China), and shows the measured value in millimeters
23or inches.
24
25Notice that these devices often communicate on voltage levels below
263.3V and may require additional circuitry to capture the signal.
27
28This decoder does not work for calipers using the Digimatic protocol
29(eg. Mitutoyo and similar brands).
30
31For more information see:
32http://www.shumatech.com/support/chinese_scales.htm
33https://www.instructables.com/id/Reading-Digital-Callipers-with-an-Arduino-USB/
34'''
35
36from .pd import Decoder