first re-commit.

This commit is contained in:
2025-08-05 22:33:23 +02:00
commit e1ff579d1a
295 changed files with 107130 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*.o
*.user
*.pro.*

23
.qmake.stash Normal file
View File

@@ -0,0 +1,23 @@
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 10
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 2
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 1
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_GCC_MAJOR_VERSION \
QMAKE_GCC_MINOR_VERSION \
QMAKE_GCC_PATCH_VERSION
QMAKE_CXX.INCDIRS = \
/usr/include/c++/10 \
/usr/include/arm-linux-gnueabihf/c++/10 \
/usr/include/c++/10/backward \
/usr/lib/gcc/arm-linux-gnueabihf/10/include \
/usr/local/include \
/usr/include/arm-linux-gnueabihf \
/usr/include
QMAKE_CXX.LIBDIRS = \
/usr/lib/gcc/arm-linux-gnueabihf/10 \
/usr/lib/arm-linux-gnueabihf \
/usr/lib \
/lib/arm-linux-gnueabihf \
/lib

674
LICENSE Normal file
View File

@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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 3 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 <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

748
Makefile Normal file
View File

@@ -0,0 +1,748 @@
#############################################################################
# Makefile for building: pigbin
# Generated by qmake (3.1) (Qt 5.15.2)
# Project: libPiGPIO.pro
# Template: app
# Command: /usr/lib/qt5/bin/qmake -o Makefile libPiGPIO.pro
#############################################################################
MAKEFILE = Makefile
EQ = =
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -DLIBPIGPIO_LIBRARY -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
CFLAGS = -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS = -pipe -O2 -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC $(DEFINES)
INCPATH = -I. -I. -Isigslot/include/sigslot -I/usr/include/arm-linux-gnueabihf/qt5 -I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -I/usr/include/arm-linux-gnueabihf/qt5/QtGui -I/usr/include/arm-linux-gnueabihf/qt5/QtNetwork -I/usr/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++
QMAKE = /usr/lib/qt5/bin/qmake
DEL_FILE = rm -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
COPY = cp -f
COPY_FILE = cp -f
COPY_DIR = cp -f -R
INSTALL_FILE = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR = cp -f -R
QINSTALL = /usr/lib/qt5/bin/qmake -install qinstall
QINSTALL_PROGRAM = /usr/lib/qt5/bin/qmake -install qinstall -exe
DEL_FILE = rm -f
SYMLINK = ln -f -s
DEL_DIR = rmdir
MOVE = mv -f
TAR = tar -cf
COMPRESS = gzip -9f
DISTNAME = pigbin1.0.0
DISTDIR = /home/pi/share/projects.nxt/libPiGPIO/.tmp/pigbin1.0.0
LINK = g++
LFLAGS = -Wl,-O1
LIBS = $(SUBLIBS) -lpigpiod_if2 -lrt -pthread /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so /usr/lib/arm-linux-gnueabihf/libQt5Gui.so /usr/lib/arm-linux-gnueabihf/libQt5Network.so /usr/lib/arm-linux-gnueabihf/libQt5Core.so -lGLESv2 -lpthread -latomic
AR = ar cqs
RANLIB =
SED = sed
STRIP = strip
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = libpigcore.cpp \
libpiglinux.cpp \
libpigpio.cpp \
libpigwindows.cpp \
pigbeeper.cpp \
pigbutton.cpp \
pigbuzzer.cpp \
pigcall.cpp \
pigchrono.cpp \
pigi2c.cpp \
pigi2cnode.cpp \
piglcd.cpp \
pigled.cpp \
pignode.cpp \
pignodein.cpp \
pignodeout.cpp \
pigsonar.cpp \
pigstate.cpp \
pigvalue.cpp \
pigpin.cpp \
pigtimer.cpp \
pigrotarydial.cpp \
QtGPIOMain.cpp \
main.cpp qrc_QtGPIO.cpp \
moc_QtGPIOMain.cpp
OBJECTS = libpigcore.o \
libpiglinux.o \
libpigpio.o \
libpigwindows.o \
pigbeeper.o \
pigbutton.o \
pigbuzzer.o \
pigcall.o \
pigchrono.o \
pigi2c.o \
pigi2cnode.o \
piglcd.o \
pigled.o \
pignode.o \
pignodein.o \
pignodeout.o \
pigsonar.o \
pigstate.o \
pigvalue.o \
pigpin.o \
pigtimer.o \
pigrotarydial.o \
QtGPIOMain.o \
main.o \
qrc_QtGPIO.o \
moc_QtGPIOMain.o
DIST = /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/spec_pre.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/unix.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/linux.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/sanitize.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/gcc-base.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/gcc-base-unix.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/g++-base.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/g++-unix.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/qconfig.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_bluetooth.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_concurrent.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_core.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_core_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_dbus.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_gui.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_gui_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_multimedia.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_network.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_network_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_nfc.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_opengl.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_printsupport.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qml.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmlmodels.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmltest.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmlworkerscript.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_quick.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_quickwidgets.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_sql.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_sql_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_testlib.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_widgets.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_x11extras.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xkbcommon_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xml.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xml_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt_functions.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt_config.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++/qmake.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/spec_post.prf \
.qmake.stash \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/exclusive_builds.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/toolchain.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/default_pre.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resolve_config.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/default_post.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/warn_on.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resources_functions.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resources.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/moc.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/unix/opengl.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/uic.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/unix/thread.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qmake_use.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/file_copies.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/testcase_targets.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/exceptions.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/yacc.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/lex.prf \
libPiGPIO.pro libpigcore.h \
libpiglinux.h \
libpigpio.h \
libpigwindows.h \
pigbeeper.h \
pigbutton.h \
pigbuzzer.h \
pigcall.h \
pigchrono.h \
pigi2c.h \
pigi2cnode.h \
piglcd.h \
pigled.h \
pignode.h \
pignodein.h \
pignodeout.h \
pigsonar.h \
pigstate.h \
pigvalue.h \
pigpin.h \
pigtimer.h \
pigrotarydial.h \
QtGPIOMain.h libpigcore.cpp \
libpiglinux.cpp \
libpigpio.cpp \
libpigwindows.cpp \
pigbeeper.cpp \
pigbutton.cpp \
pigbuzzer.cpp \
pigcall.cpp \
pigchrono.cpp \
pigi2c.cpp \
pigi2cnode.cpp \
piglcd.cpp \
pigled.cpp \
pignode.cpp \
pignodein.cpp \
pignodeout.cpp \
pigsonar.cpp \
pigstate.cpp \
pigvalue.cpp \
pigpin.cpp \
pigtimer.cpp \
pigrotarydial.cpp \
QtGPIOMain.cpp \
main.cpp
QMAKE_TARGET = pigbin
DESTDIR =
TARGET = pigbin
first: all
####### Build rules
pigbin: ui_QtGPIOMain.h $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: libPiGPIO.pro /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++/qmake.conf /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/spec_pre.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/unix.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/linux.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/sanitize.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/gcc-base.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/gcc-base-unix.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/g++-base.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/g++-unix.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/qconfig.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_bluetooth.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_concurrent.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_core.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_core_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_dbus.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_gui.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_gui_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_multimedia.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_network.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_network_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_nfc.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_opengl.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_printsupport.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qml.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmlmodels.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmltest.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmlworkerscript.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_quick.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_quickwidgets.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_sql.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_sql_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_testlib.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_widgets.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_x11extras.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xkbcommon_support_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xml.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xml_private.pri \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt_functions.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt_config.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++/qmake.conf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/spec_post.prf \
.qmake.stash \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/exclusive_builds.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/toolchain.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/default_pre.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resolve_config.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/default_post.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/warn_on.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resources_functions.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resources.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/moc.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/unix/opengl.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/uic.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/unix/thread.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qmake_use.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/file_copies.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/testcase_targets.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/exceptions.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/yacc.prf \
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/lex.prf \
libPiGPIO.pro \
QtGPIO.qrc
$(QMAKE) -o Makefile libPiGPIO.pro
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/spec_pre.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/unix.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/linux.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/sanitize.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/gcc-base.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/gcc-base-unix.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/g++-base.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/common/g++-unix.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/qconfig.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_bluetooth.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_concurrent.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_concurrent_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_core.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_core_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_dbus.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_dbus_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_edid_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_egl_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_fb_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_gui.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_gui_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_input_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_kms_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_multimedia.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_network.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_network_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_nfc.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_opengl.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_opengl_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_openglextensions.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_printsupport.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_printsupport_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qml.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmlmodels.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmltest.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_qmlworkerscript.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_quick.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_quickwidgets.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_service_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_sql.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_sql_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_testlib.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_testlib_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_theme_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_widgets.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_widgets_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_x11extras.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xkbcommon_support_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xml.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/modules/qt_lib_xml_private.pri:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt_functions.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt_config.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++/qmake.conf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/spec_post.prf:
.qmake.stash:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/exclusive_builds.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/toolchain.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/default_pre.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resolve_config.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/default_post.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/warn_on.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qt.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resources_functions.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/resources.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/moc.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/unix/opengl.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/uic.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/unix/thread.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/qmake_use.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/file_copies.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/testcase_targets.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/exceptions.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/yacc.prf:
/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/lex.prf:
libPiGPIO.pro:
QtGPIO.qrc:
qmake: FORCE
@$(QMAKE) -o Makefile libPiGPIO.pro
qmake_all: FORCE
all: Makefile pigbin
dist: distdir FORCE
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
distdir: FORCE
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
$(COPY_FILE) --parents QtGPIO.qrc $(DISTDIR)/
$(COPY_FILE) --parents /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/
$(COPY_FILE) --parents libpigcore.h libpiglinux.h libpigpio.h libpigwindows.h pigbeeper.h pigbutton.h pigbuzzer.h pigcall.h pigchrono.h pigi2c.h pigi2cnode.h piglcd.h pigled.h pignode.h pignodein.h pignodeout.h pigsonar.h pigstate.h pigvalue.h pigpin.h pigtimer.h pigrotarydial.h QtGPIOMain.h $(DISTDIR)/
$(COPY_FILE) --parents libpigcore.cpp libpiglinux.cpp libpigpio.cpp libpigwindows.cpp pigbeeper.cpp pigbutton.cpp pigbuzzer.cpp pigcall.cpp pigchrono.cpp pigi2c.cpp pigi2cnode.cpp piglcd.cpp pigled.cpp pignode.cpp pignodein.cpp pignodeout.cpp pigsonar.cpp pigstate.cpp pigvalue.cpp pigpin.cpp pigtimer.cpp pigrotarydial.cpp QtGPIOMain.cpp main.cpp $(DISTDIR)/
$(COPY_FILE) --parents QtGPIOMain.ui $(DISTDIR)/
clean: compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) .qmake.stash
-$(DEL_FILE) Makefile
####### Sub-libraries
mocclean: compiler_moc_header_clean compiler_moc_objc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_objc_header_make_all compiler_moc_source_make_all
check: first
benchmark: first
compiler_rcc_make_all: qrc_QtGPIO.cpp
compiler_rcc_clean:
-$(DEL_FILE) qrc_QtGPIO.cpp
qrc_QtGPIO.cpp: QtGPIO.qrc \
/usr/lib/qt5/bin/rcc \
images/Red.png \
images/Black.png \
images/Green.png
/usr/lib/qt5/bin/rcc -name QtGPIO QtGPIO.qrc -o qrc_QtGPIO.cpp
compiler_moc_predefs_make_all: moc_predefs.h
compiler_moc_predefs_clean:
-$(DEL_FILE) moc_predefs.h
moc_predefs.h: /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/data/dummy.cpp
g++ -pipe -O2 -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/features/data/dummy.cpp
compiler_moc_header_make_all: moc_QtGPIOMain.cpp
compiler_moc_header_clean:
-$(DEL_FILE) moc_QtGPIOMain.cpp
moc_QtGPIOMain.cpp: QtGPIOMain.h \
ui_QtGPIOMain.h \
pigrotarydial.h \
pigbutton.h \
pignodein.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h \
moc_predefs.h \
/usr/lib/qt5/bin/moc
/usr/lib/qt5/bin/moc $(DEFINES) --include /home/pi/share/projects.nxt/libPiGPIO/moc_predefs.h -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -I/home/pi/share/projects.nxt/libPiGPIO -I/home/pi/share/projects.nxt/libPiGPIO -I/home/pi/share/projects.nxt/libPiGPIO/sigslot/include/sigslot -I/usr/include/arm-linux-gnueabihf/qt5 -I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets -I/usr/include/arm-linux-gnueabihf/qt5/QtGui -I/usr/include/arm-linux-gnueabihf/qt5/QtNetwork -I/usr/include/arm-linux-gnueabihf/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/arm-linux-gnueabihf/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/arm-linux-gnueabihf/10/include -I/usr/local/include -I/usr/include/arm-linux-gnueabihf -I/usr/include QtGPIOMain.h -o moc_QtGPIOMain.cpp
compiler_moc_objc_header_make_all:
compiler_moc_objc_header_clean:
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_QtGPIOMain.h
compiler_uic_clean:
-$(DEL_FILE) ui_QtGPIOMain.h
ui_QtGPIOMain.h: QtGPIOMain.ui \
/usr/lib/qt5/bin/uic
/usr/lib/qt5/bin/uic QtGPIOMain.ui -o ui_QtGPIOMain.h
compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_rcc_clean compiler_moc_predefs_clean compiler_moc_header_clean compiler_uic_clean
####### Compile
libpigcore.o: libpigcore.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o libpigcore.o libpigcore.cpp
libpiglinux.o: libpiglinux.cpp libpiglinux.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
libpigcore.h \
pigi2c.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o libpiglinux.o libpiglinux.cpp
libpigpio.o: libpigpio.cpp libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigpin.h \
pignode.h \
pigcall.h \
libpigwindows.h \
libpigcore.h \
libpiglinux.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o libpigpio.o libpigpio.cpp
libpigwindows.o: libpigwindows.cpp libpigwindows.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
libpigcore.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o libpigwindows.o libpigwindows.cpp
pigbeeper.o: pigbeeper.cpp pigbeeper.h \
pignodeout.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigbeeper.o pigbeeper.cpp
pigbutton.o: pigbutton.cpp pigbutton.h \
pignodein.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigbutton.o pigbutton.cpp
pigbuzzer.o: pigbuzzer.cpp pigbuzzer.h \
pignodeout.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigbuzzer.o pigbuzzer.cpp
pigcall.o: pigcall.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigcall.o pigcall.cpp
pigchrono.o: pigchrono.cpp pigchrono.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigchrono.o pigchrono.cpp
pigi2c.o: pigi2c.cpp pigi2c.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigi2c.o pigi2c.cpp
pigi2cnode.o: pigi2cnode.cpp pigi2cnode.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pignode.h \
pigcall.h \
pigi2c.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigi2cnode.o pigi2cnode.cpp
piglcd.o: piglcd.cpp piglcd.h \
pigi2cnode.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pignode.h \
pigcall.h \
pigi2c.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o piglcd.o piglcd.cpp
pigled.o: pigled.cpp pigled.h \
pignodeout.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigled.o pigled.cpp
pignode.o: pignode.cpp pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pignode.o pignode.cpp
pignodein.o: pignodein.cpp pignodein.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pignodein.o pignodein.cpp
pignodeout.o: pignodeout.cpp pignodeout.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pignodeout.o pignodeout.cpp
pigsonar.o: pigsonar.cpp pigsonar.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigvalue.h \
pigpin.h \
pigchrono.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigsonar.o pigsonar.cpp
pigstate.o: pigstate.cpp pigstate.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigvalue.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigstate.o pigstate.cpp
pigvalue.o: pigvalue.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigvalue.o pigvalue.cpp
pigpin.o: pigpin.cpp pigpin.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
libpigcore.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigpin.o pigpin.cpp
pigtimer.o: pigtimer.cpp pigtimer.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigtimer.o pigtimer.cpp
pigrotarydial.o: pigrotarydial.cpp pigrotarydial.h \
pigbutton.h \
pignodein.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o pigrotarydial.o pigrotarydial.cpp
QtGPIOMain.o: QtGPIOMain.cpp QtGPIOMain.h \
ui_QtGPIOMain.h \
pigrotarydial.h \
pigbutton.h \
pignodein.h \
pignode.h \
pigcall.h \
libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigstate.h \
pigvalue.h \
pigpin.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o QtGPIOMain.o QtGPIOMain.cpp
main.o: main.cpp libpigpio.h \
sigslot/include/sigslot/signal.hpp \
pigbutton.h \
pignodein.h \
pignode.h \
pigcall.h \
pigstate.h \
pigvalue.h \
pigpin.h \
pigtimer.h \
pigrotarydial.h \
pigchrono.h \
pigsonar.h \
piglcd.h \
pigi2cnode.h \
pigi2c.h \
pigbeeper.h \
pignodeout.h \
pigbuzzer.h \
pigled.h \
QtGPIOMain.h \
ui_QtGPIOMain.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
qrc_QtGPIO.o: qrc_QtGPIO.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_QtGPIO.o qrc_QtGPIO.cpp
moc_QtGPIOMain.o: moc_QtGPIOMain.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_QtGPIOMain.o moc_QtGPIOMain.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:

7
QtGPIO.qrc Normal file
View File

@@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/">
<file>images/Green.png</file>
<file>images/Red.png</file>
<file>images/Black.png</file>
</qresource>
</RCC>

57
QtGPIOMain.cpp Normal file
View File

@@ -0,0 +1,57 @@
/***************************************************************************
QtGPIO
Copyright © 2013-2022 christoph holzheuer
chris@sourceworx.org
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 3 of the License, or
(at your option) any later version.
***************************************************************************/
#include <QtGPIOMain.h>
#include <ui_QtGPIOMain.h>
#include <QDebug>
QtGPIOMain::QtGPIOMain( QWidget* parent )
: QMainWindow( parent ), _pigDial( pigpio::bcm17, pigpio::bcm27, pigpio::bcm22 )
{
setupUi( this );
//_rotaryDial.init( pigpio::bcm17, pigpio::bcm27, pigpio::bcm22 );
//auto lambda = []() { std::cout << "lambda\n"; };
//_rotaryDial.sigState.connect( lambda );
//pigRotaryDial dial( pigpio::bcm17, pigpio::bcm27, pigpio::bcm22 );
//_rotaryDial.add_state_observer( &myMoo );
//_rotaryDial.add_value_observer( &myMoo );
//_pigDial.add_state_observer( this );
//_pigDial.add_value_observer( this );
}
QtGPIOMain::~QtGPIOMain()
{
}
void QtGPIOMain::on_state_changed( bool state )
{
qDebug() << "onStateChanged: " << state;
_LED->setChecked( state );
}
void QtGPIOMain::on_value_changed( int value )
{
qDebug() << "on_value_changed: " << value;
_dial->setValue( value );
}

45
QtGPIOMain.h Normal file
View File

@@ -0,0 +1,45 @@
/***************************************************************************
QtGPIO
Copyright © 2013-2022 christoph holzheuer
chris@sourceworx.org
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 3 of the License, or
(at your option) any later version.
***************************************************************************/
#ifndef QPIGPIOMAIN_H
#define QPIGPIOMAIN_H
#include <QMainWindow>
#include <ui_QtGPIOMain.h>
#include <iostream>
#include <pigrotarydial.h>
class QtGPIOMain : public QMainWindow, private Ui_QtGPIOMain
{
Q_OBJECT
public:
QtGPIOMain( QWidget* parent = nullptr );
virtual ~QtGPIOMain();
void on_state_changed( bool state );
void on_value_changed( int value );
protected:
pigRotaryDial _pigDial;
};
#endif // QPIGPIOMAIN_H

114
QtGPIOMain.ui Normal file
View File

@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QtGPIOMain</class>
<widget class="QMainWindow" name="QtGPIOMain">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>473</width>
<height>342</height>
</rect>
</property>
<property name="windowTitle">
<string>libPiGPio Widget Demo</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="styleSheet">
<string notr="true"/>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QFrame" name="_frame">
<property name="styleSheet">
<string notr="true">background: grey</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="lineWidth">
<number>10</number>
</property>
<property name="midLineWidth">
<number>10</number>
</property>
<widget class="QPushButton" name="_LED">
<property name="geometry">
<rect>
<x>50</x>
<y>60</y>
<width>91</width>
<height>81</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background: grey</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="QtGPIO.qrc">
<normaloff>:/images/Green.png</normaloff>
<normalon>:/images/Red.png</normalon>:/images/Green.png</iconset>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
<widget class="QDial" name="_dial">
<property name="geometry">
<rect>
<x>130</x>
<y>60</y>
<width>80</width>
<height>80</height>
</rect>
</property>
</widget>
<widget class="QLCDNumber" name="_display">
<property name="geometry">
<rect>
<x>250</x>
<y>90</y>
<width>131</width>
<height>41</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background:lightgrey</string>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>473</width>
<height>26</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources>
<include location="QtGPIO.qrc"/>
</resources>
<connections/>
</ui>

92
README.md Normal file
View File

@@ -0,0 +1,92 @@
# libPiGPIO
Die libPiGPIO c++ library
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Add your files
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
```
cd existing_repo
git remote add origin http://sourceworx.org:9099/opensource/libpigpio.git
git branch -M main
git push -uf origin main
```
## Integrate with your tools
- [ ] [Set up project integrations](http://sourceworx.org:9099/opensource/libpigpio/-/settings/integrations)
## Collaborate with your team
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Test and Deploy
Use the built-in continuous integration in GitLab.
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
***
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
## Suggestions for a good README
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
## Name
Choose a self-explaining name for your project.
## Description
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
## Badges
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
## Visuals
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
## Installation
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
## Usage
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
## Support
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
## Roadmap
If you have ideas for releases in the future, it is a good idea to list them in the README.
## Contributing
State if you are open to contributions and what your requirements are for accepting them.
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
## Authors and acknowledgment
Show your appreciation to those who have contributed to the project.
## License
For open source projects, say how it is licensed.
## Project status
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.

BIN
images/Black.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
images/Green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
images/Red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

86
libPiGPIO.pro Normal file
View File

@@ -0,0 +1,86 @@
TEMPLATE = app
DEFINES += LIBPIGPIO_LIBRARY
CONFIG += console c++17
#CONFIG -= app_bundle
#CONFIG -= qt
QT += core gui network widgets
#CONFIG += lrelease
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += . sigslot/include/sigslot
SOURCES += \
libpigcore.cpp \
libpiglinux.cpp \
libpigpio.cpp \
libpigwindows.cpp \
pigbeeper.cpp \
pigbutton.cpp \
pigbuzzer.cpp \
pigcall.cpp \
pigchrono.cpp \
pigi2c.cpp \
pigi2cnode.cpp \
piglcd.cpp \
pigled.cpp \
pignode.cpp \
pignodein.cpp \
pignodeout.cpp \
pigsonar.cpp \
pigstate.cpp \
pigvalue.cpp \
pigpin.cpp \
pigtimer.cpp \
pigrotarydial.cpp \
QtGPIOMain.cpp \
main.cpp
HEADERS += \
libpigcore.h \
libpiglinux.h \
libpigpio.h \
libpigwindows.h \
pigbeeper.h \
pigbutton.h \
pigbuzzer.h \
pigcall.h \
pigchrono.h \
pigi2c.h \
pigi2cnode.h \
piglcd.h \
pigled.h \
pignode.h \
pignodein.h \
pignodeout.h \
pigsonar.h \
pigstate.h \
pigvalue.h \
pigpin.h \
pigtimer.h \
pigrotarydial.h \
QtGPIOMain.h \
FORMS += \
QtGPIOMain.ui
RESOURCES += \
QtGPIO.qrc
linux {
TARGET = pigbin
LIBS += -lpigpiod_if2 -lrt -pthread
}
# Default rules for deployment.
#unix {
# target.path = /usr/local/lib
#}
!isEmpty(target.path): INSTALLS += target

24
libpigcore.cpp Normal file
View File

@@ -0,0 +1,24 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/

136
libpigcore.h Normal file
View File

@@ -0,0 +1,136 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef LIBPIGCORE_H
#define LIBPIGCORE_H
#include <string>
#include <iostream>
#include <signal.hpp>
#include <libpigpio.h>
//using namespace pigpio;
struct pigI2C;
namespace pigpio
{
class LIBPIGPIO_EXPORT pigCore
{
public:
/*
- sigX einheitlich, geht das
- stack für sensoren
- threaded sensors / actors?
- timer flicken
*/
virtual int init( const std::string& host ="" , const std::string& port="" ) = 0;
// pin config
virtual int set_io_mode( bcm_t bcm, io_t mode ) = 0;
virtual int get_io_mode( bcm_t bcm ) = 0;
virtual int set_pud_mode( bcm_t bcm, pud_t pud ) = 0;
virtual int set_glitch_filter( bcm_t bcm, uint32_t glitch = GlitchDef ) = 0;
virtual int set_noise_filter( bcm_t bcm, uint32_t steady, uint32_t active ) = 0;
// pin operations
virtual int get_level( bcm_t bcm ) = 0;
virtual int set_level( bcm_t bcm, level_t level ) = 0;
virtual int trigger_level( bcm_t bcm, level_t level, uint32_t pulseLen ) = 0;
virtual int wait_for_edge( bcm_t bcm, edge_t edge, double timeout = TimeoutDef ) = 0;
// reality interface
virtual int set_callback( bcm_t bcm, pigCall* user, edge_t edge = either ) = 0;
virtual int cancel_callback( int cbId ) = 0;
// software PWM
/*
set_PWM_dutycycle Start/stop PWM pulses on a GPIO
set_PWM_frequency Configure PWM frequency for a GPIO
set_PWM_range Configure PWM range for a GPIO
get_PWM_dutycycle Get the PWM dutycycle in use on a GPIO
get_PWM_frequency Get configured PWM frequency for a GPIO
get_PWM_range Get configured PWM range for a GPIO
get_PWM_real_range Get underlying PWM range for a GPIO
*/
// i2c
virtual int i2c_open( pigI2C& i2c ) = 0;
virtual int i2c_close( pigI2C& i2c ) = 0;
/*
virtual int i2c_write_quick( pigI2C& i2c, unsigned bit ) = 0;
virtual int i2c_write_byte( pigI2C& i2c, unsigned bVal ) = 0;
virtual int i2c_write_byte_data( pigI2C& i2c, unsigned reg, unsigned val ) = 0;
virtual int i2c_write_word_data( pigI2C& i2c, unsigned reg, unsigned val ) = 0;
virtual int i2c_write_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) = 0;
virtual int i2c_write_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) = 0;
*/
virtual int i2c_write_device( pigI2C& i2c, char* buf, unsigned count ) = 0;
/*
virtual int i2c_read_byte( pigI2C& i2c ) = 0;
virtual int i2c_read_byte_data( pigI2C& i2c, unsigned reg ) = 0;
virtual int i2c_read_word_data( pigI2C& i2c, unsigned reg ) = 0;
virtual int i2c_read_block_data( pigI2C& i2c, unsigned reg, char* buf ) = 0;
virtual int i2c_read_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) = 0;
virtual int i2c_read_device( pigI2C& i2c, char* buf, unsigned count ) = 0;
virtual int i2c_process_call( pigI2C& i2c, unsigned i2c_reg, unsigned wVal) = 0;
virtual int i2c_block_process_call( pigI2C& i2c, unsigned i2c_reg, char* buf, unsigned count ) = 0;
virtual int i2c_zip( pigI2C& i2c, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen ) = 0;
*/
// advanced
virtual int hardware_PWM( bcm_t bcm, uint32_t PWMfreq, uint32_t PWMduty ) = 0;
virtual int hardware_clock( bcm_t bcm, uint32_t clkfreq ) = 0;
virtual uint32_t get_current_tick() = 0;
// info
virtual int get_hardware_revision() = 0;
virtual int get_pigpio_version() = 0;
virtual unsigned pigpiod_if_version() = 0;
virtual int show_error( int errNo ) = 0;
protected:
int _Pi;
}; // class pigCore
} // namespace pigpio
#endif // LIBPIGCORE_H

407
libpiglinux.cpp Normal file
View File

@@ -0,0 +1,407 @@
#if defined(unix) || defined(__unix__) || defined(__unix)
#include <iostream>
#include <unistd.h>
#include <pigpiod_if2.h>
#include <libpiglinux.h>
#include <pigi2c.h>
using namespace pigpio;
pigLinux::pigLinux() noexcept
{
//::gpioInitialise();
/// Connect to Pi.
constexpr char* optHost = nullptr;
constexpr char* optPort = nullptr;
_Pi = ::pigpio_start( optHost, optPort );
if( _Pi < 0 )
std::cout << "-- pigLinux(): FAIL" << std::endl;
}
pigLinux::~pigLinux()
{
//::gpioTerminate();
::pigpio_stop( _Pi );
}
int pigLinux::init( const std::string& host, const std::string& port )
{
//::gpioInitialise();
/// Connect to Pi.
_Pi = ::pigpio_start( host.c_str(), port.c_str() );
if( _Pi < 0 )
std::cout << "-- pigLinux(): FAIL" << std::endl;
return _Pi;
}
///
/// pin config
///
int pigLinux::set_io_mode( bcm_t bcm, io_t mode )
{
int result = ::set_mode( _Pi, (unsigned) bcm, (unsigned) mode );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::get_io_mode( bcm_t bcm )
{
int result = ::get_mode( _Pi, (unsigned) bcm );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::set_pud_mode( bcm_t bcm, pud_t pud )
{
int result = ::set_pull_up_down( _Pi, (unsigned) bcm, (unsigned) pud );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::set_glitch_filter( bcm_t bcm , uint32_t glitch )
{
int result = ::set_glitch_filter( _Pi, (unsigned) bcm, glitch );
if( result < 0 )
return show_error( result );
return result;
}
//Sets a noise filter on a GPIO.
int pigLinux::set_noise_filter( bcm_t bcm , unsigned steady, unsigned active )
{
int result = ::set_noise_filter( _Pi, (unsigned) bcm, steady, active );
if( result < 0 )
return show_error( result );
return result;
}
///
/// pin operations
///
int pigLinux::get_level( bcm_t bcm )
{
return ::gpio_read( _Pi, (unsigned) bcm );
}
int pigLinux::set_level( bcm_t bcm , level_t level )
{
int result = ::gpio_write( _Pi, (unsigned) bcm, level ); ;
if( result < 0 )
return show_error( result );
return result;
}
//This function sends a trigger pulse to a GPIO. The GPIO is set to level for pulseLen microseconds and then reset to not level.
int pigLinux::trigger_level( bcm_t bcm , level_t level, uint32_t pulseLen )
{
//int trigger_level(int pi, unsigned user_gpio, unsigned pulseLen, unsigned level)
int result = ::gpio_trigger( _Pi, (unsigned) bcm, pulseLen, level ); ;
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::wait_for_edge( bcm_t bcm , edge_t edge, double tout )
{
//std::cout << " --pigLinux::wait_for_edge: " << (uint32_t) bcm << " : " << (uint32_t) edge << std::endl;
int result = ::wait_for_edge( _Pi, (unsigned) bcm, (unsigned) edge, tout );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::set_callback( bcm_t bcm, pigCall* fn, edge_t edge )
{
//std::cout << " --pigLinux::set_callback: " << (uint32_t) bcm << " : " << (uint32_t) edge << std::endl;
/// typedef int (*CBFuncEx_t)(int pi, unsigned user_gpio, unsigned level, uint32_t tick, int * userdata );
///int callback_ex(int pi, unsigned user_gpio, unsigned edge, CBFuncEx_t f, int *userdata)
//int result = cbId = ::callback_ex( _Pi, (unsigned) bcm, (unsigned) edge, trigger, widget );
//int result = ::callback_ex( _Pi, (unsigned) bcm, (unsigned) edge, trigger, widget );
int result = ::callback_ex( _Pi, (unsigned) bcm, (unsigned) edge, trigger, fn );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::cancel_callback( int cbId )
{
int result = ::callback_cancel( cbId );
if( result < 0 )
return show_error( result );
return result;
}
///
/// ic2
///
int pigLinux::i2c_open( pigI2C& i2c )
{
int result = i2c.handle = ::i2c_open( _Pi, i2c.bus, i2c.addr, 0 );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_close( pigI2C& i2c )
{
int result = ::i2c_close( _Pi, i2c.handle );
if( result < 0 )
return show_error( result );
return result;
}
/*
int pigLinux::i2c_write_quick( pigI2C& i2c, unsigned bit )
{
int result = ::i2c_write_quick( _Pi, i2c.handle, bit );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_write_byte( pigI2C& i2c, unsigned bVal )
{
int result = ::i2c_write_byte( _Pi, i2c.handle, bVal );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_write_byte_data( pigI2C& i2c, unsigned reg, unsigned val )
{
int result = ::i2c_write_byte_data( _Pi, i2c.handle, reg, val );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_write_word_data( pigI2C& i2c, unsigned reg, unsigned val )
{
int result = ::i2c_write_word_data( _Pi, i2c.handle, reg, val );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_write_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count )
{
int result = ::i2c_write_block_data( _Pi, i2c.handle, reg, buf, count );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_write_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count )
{
int result = ::i2c_write_i2c_block_data( _Pi, i2c.handle, reg, buf, count );
if( result < 0 )
return show_error( result );
return result;
}
*/
int pigLinux::i2c_write_device( pigI2C& i2c, char* buf, unsigned count )
{
int result = ::i2c_write_device( _Pi, i2c.handle, buf, count );
if( result < 0 )
return show_error( result );
return result;
}
/*
int pigLinux::i2c_read_byte( pigI2C& i2c )
{
int result = ::i2c_read_byte( _Pi, i2c.handle );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_read_byte_data( pigI2C& i2c, unsigned reg )
{
int result = ::i2c_read_byte_data( _Pi, i2c.handle, reg );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_read_word_data( pigI2C& i2c, unsigned reg )
{
int result = ::i2c_read_word_data( _Pi, i2c.handle, reg );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_read_block_data( pigI2C& i2c, unsigned reg, char* buf )
{
int result = ::i2c_read_block_data( _Pi, i2c.handle, reg, buf );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_read_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count )
{
int result = ::i2c_read_i2c_block_data( _Pi, i2c.handle, reg, buf, count );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_read_device( pigI2C& i2c, char* buf, unsigned count )
{
int result = ::i2c_read_device( _Pi, i2c.handle, buf, count );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_process_call( pigI2C& i2c, unsigned reg, unsigned wVal )
{
int result = ::i2c_process_call( _Pi, i2c.handle, reg, wVal );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_block_process_call( pigI2C& i2c,unsigned reg, char* buf, unsigned count )
{
int result = ::i2c_block_process_call( _Pi, i2c.handle, reg, buf, count );
if( result < 0 )
return show_error( result );
return result;
}
int pigLinux::i2c_zip( pigI2C& i2c, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen )
{
int result = ::i2c_zip( _Pi, i2c.handle, inBuf, inLen, outBuf, outLen );
if( result < 0 )
return show_error( result );
return result;
}
*/
///
/// advanced
///
//Starts hardware PWM on a GPIO at the specified frequency and dutycycle. Frequencies above 30MHz are unlikely to work.
int pigLinux::hardware_PWM( bcm_t bcm , unsigned PWMfreq, uint32_t PWMduty )
{
//int hardware_PWM(int pi, unsigned gpio, unsigned PWMfreq, uint32_t PWMduty)
int result = ::hardware_PWM( _Pi, (unsigned) bcm, PWMfreq, PWMduty );
if( result < 0 )
return show_error( result );
return result;
}
//Starts a hardware clock on a GPIO at the specified frequency. Frequencies above 30MHz are unlikely to work.
int pigLinux::hardware_clock( bcm_t bcm , unsigned clkfreq )
{
//int hardware_clock(int pi, unsigned gpio, unsigned clkfreq)
int result = ::hardware_clock( _Pi, (unsigned) bcm, clkfreq );
if( result < 0 )
return show_error( result );
return result;
}
uint32_t pigLinux::get_current_tick()
{
//int hardware_clock(int pi, unsigned gpio, unsigned clkfreq)
return ::get_current_tick( _Pi );
}
///
/// convenience
///
int pigLinux::show_error( int error )
{
std::cout << "Error: " << ::pigpio_error( error ) << std::endl;
return error;
}
/// ---
//Get the Pi's hardware revision number.
int pigLinux::get_hardware_revision()
{
int result = ::get_hardware_revision( _Pi );
if( result < 0 )
return show_error( result );
return result;
}
//Returns the pigpio version.
int pigLinux::get_pigpio_version()
{
int result = ::get_pigpio_version( _Pi );
if( result < 0 )
return show_error( result );
return result;
}
//Return the pigpiod_if2 version.
unsigned pigLinux::pigpiod_if_version()
{
//unsigned pigpiod_if_version(void)
int result = ::pigpiod_if_version();
if( result < 0 )
return show_error( result );
return result;
}
#endif

126
libpiglinux.h Normal file
View File

@@ -0,0 +1,126 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef LIBPIGLINUX_H
#define LIBPIGLINUX_H
#if defined(unix) || defined(__unix__) || defined(__unix)
#include <libpigpio.h>
#include <libpigcore.h>
namespace pigpio
{
class LIBPIGPIO_EXPORT pigLinux : public pigCore
{
friend pigCore& get_instance();
public:
pigLinux( const pigLinux& ) = delete;
void operator=( const pigLinux& ) = delete;
virtual ~pigLinux();
int init( const std::string& host ="", const std::string& port="" ) override;
// pin config
int set_io_mode( bcm_t bcm, io_t mode ) override;
int get_io_mode( bcm_t bcm ) override;
int set_pud_mode( bcm_t bcm, pud_t pud ) override;
int set_glitch_filter( bcm_t bcm, uint32_t glitch = GlitchDef ) override;
int set_noise_filter( bcm_t bcm, uint32_t steady, uint32_t active ) override;
// pin operations
int get_level( bcm_t bcm ) override;
int set_level( bcm_t bcm, level_t level ) override;
int wait_for_edge( bcm_t bcm, edge_t edge, double timeout = TimeoutDef ) override;
int trigger_level( bcm_t bcm, level_t level, uint32_t pulseLen ) override;
// interface
int set_callback( bcm_t bcm, pigCall* user, edge_t edge = either ) override;
int cancel_callback( int cbId ) override;
// software PWM
/*
set_PWM_dutycycle Start/stop PWM pulses on a GPIO
set_PWM_frequency Configure PWM frequency for a GPIO
set_PWM_range Configure PWM range for a GPIO
get_PWM_dutycycle Get the PWM dutycycle in use on a GPIO
get_PWM_frequency Get configured PWM frequency for a GPIO
get_PWM_range Get configured PWM range for a GPIO
get_PWM_real_range Get underlying PWM range for a GPIO
*/
// i2c
int i2c_open( pigI2C& i2c ) override;
int i2c_close( pigI2C& i2c ) override;
/*
int i2c_write_quick( pigI2C& i2c, unsigned bit ) override;
int i2c_write_byte( pigI2C& i2c, unsigned bVal ) override;
int i2c_write_byte_data( pigI2C& i2c, unsigned reg, unsigned val ) override;
int i2c_write_word_data( pigI2C& i2c, unsigned reg, unsigned val ) override;
int i2c_write_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) override;
int i2c_write_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) override;
*/
int i2c_write_device( pigI2C& i2c, char* buf, unsigned count ) override;
/*
int i2c_read_byte( pigI2C& i2c ) override;
int i2c_read_byte_data( pigI2C& i2c, unsigned reg ) override;
int i2c_read_word_data( pigI2C& i2c, unsigned reg ) override;
int i2c_read_block_data( pigI2C& i2c, unsigned reg, char* buf ) override;
int i2c_read_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) override;
int i2c_read_device( pigI2C& i2c, char* buf, unsigned count ) override;
int i2c_process_call( pigI2C& i2c, unsigned i2c_reg, unsigned wVal ) override;
int i2c_block_process_call( pigI2C& i2c,unsigned i2c_reg, char* buf, unsigned count ) override;
int i2c_zip( pigI2C& i2c, char* inBuf, unsigned inLen, char* outBuf, unsigned outLen ) override;
*/
// advanced
int hardware_PWM( bcm_t bcm, uint32_t PWMfreq, uint32_t PWMduty ) override;
int hardware_clock( bcm_t bcm, uint32_t clkfreq ) override;
uint32_t get_current_tick() override;
// info
int get_hardware_revision() override;
int get_pigpio_version() override;
unsigned pigpiod_if_version() override;
int show_error( int errNo ) override;
private:
pigLinux() noexcept;
};
} // namepace
#endif // def linux
#endif // LIBPIGLINUX_H

310
libpigpio.cpp Normal file
View File

@@ -0,0 +1,310 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <libpigpio.h>
#include <pigpin.h>
#include <pignode.h>
#include <libpigwindows.h>
#include <libpiglinux.h>
namespace pigpio
{
pigCore& get_instance()
{
#if defined(unix) || defined(__unix__) || defined(__unix)
static pigLinux _Instance; // guaranteed to be destroyed.
#endif //Q_OS_LINUX
#ifdef _WIN32
static pigWindows _Instance; //guaranteed to be destroyed.
#endif // _WIN32
return _Instance;
}
// bcm config
int set_io_mode( bcm_t bcm, io_t mode )
{
return get_instance().set_io_mode( bcm, mode );
}
int get_io_mode( bcm_t bcm )
{
return get_instance().get_io_mode( bcm );
}
int set_pud_mode( bcm_t bcm, pud_t pud )
{
return get_instance().set_pud_mode( bcm, pud );
}
int set_glitch_filter(bcm_t bcm, uint32_t glitch )
{
return get_instance().set_glitch_filter( bcm, glitch );
}
int set_noise_filter(bcm_t bcm, unsigned steady, unsigned active )
{
return get_instance().set_noise_filter( bcm, steady, active );
}
// bcm operations
int get_level( bcm_t bcm )
{
return get_instance().get_level( bcm );
}
int set_level( bcm_t bcm , level_t level )
{
return get_instance().set_level( bcm, level );
}
int trigger_level( bcm_t bcm, level_t level, uint32_t pulseLen )
{
return get_instance().trigger_level( bcm, pulseLen, level );
}
int wait_for_edge( bcm_t bcm, edge_t edge, double timeout )
{
return get_instance().wait_for_edge( bcm, edge, timeout );
}
// reality interface
int set_callback( bcm_t bcm, pigCall* fn, edge_t edge )
{
return get_instance().set_callback( bcm, fn, edge );
}
int cancel_callback( int cbId )
{
return get_instance().cancel_callback( cbId );
}
// software PWM
/*
set_PWM_dutycycle Start/stop PWM pulses on a GPIO
set_PWM_frequency Configure PWM frequency for a GPIO
set_PWM_range Configure PWM range for a GPIO
get_PWM_dutycycle Get the PWM dutycycle in use on a GPIO
get_PWM_frequency Get configured PWM frequency for a GPIO
get_PWM_range Get configured PWM range for a GPIO
get_PWM_real_range Get underlying PWM range for a GPIO
*/
// i2c
int i2c_open( pigI2C& i2c )
{
return get_instance().i2c_open( i2c );
}
int i2c_close( pigI2C& i2c )
{
return get_instance().i2c_close( i2c );
}
/*
int i2c_write_quick( pigI2C& i2c, unsigned bit )
{
return get_instance().
}
int i2c_write_byte( pigI2C& i2c, unsigned bVal )
{
return get_instance().
}
int i2c_write_byte_data( pigI2C& i2c, unsigned reg, unsigned val )
{
return get_instance().
}
int i2c_write_word_data( pigI2C& i2c, unsigned reg, unsigned val )
{
return get_instance().
}
int i2c_write_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count )
{
return get_instance().
}
int i2c_write_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count )
{
return get_instance().
}
*/
int i2c_write_device( pigI2C& i2c, char* buf, unsigned count )
{
return get_instance().i2c_write_device( i2c, buf, count );
}
/*
int i2c_read_byte( pigI2C& i2c )
{
return get_instance().
}
int i2c_read_byte_data( pigI2C& i2c, unsigned reg )
{
return get_instance().
}
int i2c_read_word_data( pigI2C& i2c, unsigned reg )
{
return get_instance().
}
int i2c_read_block_data( pigI2C& i2c, unsigned reg, char* buf )
{
return get_instance().
}
int i2c_read_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count )
{
return get_instance().
}
int i2c_read_device( pigI2C& i2c, char* buf, unsigned count )
{
return get_instance().
}
int i2c_process_call( pigI2C& i2c, unsigned i2c_reg, unsigned wVal)
{
return get_instance().
}
int i2c_block_process_call( pigI2C& i2c, unsigned i2c_reg, char* buf, unsigned count )
{
get_instance().i2c_block_process_call();
}
int i2c_zip( pigI2C& i2c, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen )
{
get_instance().i2c_zip( i2c, inBuf, inLen, outBuf, outLen );
}
*/
// advanced
int hardware_PWM( bcm_t bcm, unsigned PWMfreq, uint32_t PWMduty )
{
return get_instance().hardware_PWM( bcm, PWMfreq, PWMduty );
}
int hardware_clock( bcm_t bcm, unsigned clkfreq )
{
return get_instance().hardware_clock( bcm, clkfreq );
}
uint32_t get_current_tick()
{
return get_instance().get_current_tick();
}
void show_error( const std::string& msg )
{
std::cout << "error: " << msg << std::endl;
}
void show_hint( const std::string& msg )
{
std::cout << "hint: " << msg << std::endl;
}
///
/// timers
///
void delay_seconds( uint32_t tval )
{
std::this_thread::sleep_for(std::chrono::seconds( tval ) );
}
void delay_millis( uint32_t tval )
{
std::this_thread::sleep_for(std::chrono::milliseconds( tval ) );
}
void delay_micros( uint32_t tval )
{
std::this_thread::sleep_for(std::chrono::microseconds( tval ) );
}
void wait_loop()
{
while( true )
delay_seconds( 10 );
}
// void trigger( int pi, unsigned gpio, unsigned level, uint32_t tick, void *user )
void trigger( int, unsigned bcm, unsigned level, uint32_t, void *user )
{
/// Need a static callback to link with C.
pigCall* receiver = static_cast<pigCall*>( user );
if( receiver )
receiver->trigger( (bcm_t) bcm, level ); /// Call the get_instance callback.
else
std::cout << "-- ONPULSE FAIL" << (uint32_t) bcm << std::endl;
}
void greet()
{
std::cout << "lib:\t" << pigpio::Version << std::endl;
std::cout << "gpio:\t" << get_instance().get_pigpio_version() << std::endl;
std::cout << "hw rev:\t" << get_instance().get_hardware_revision() << std::endl;
std::cout << "deamon:\t" << get_instance().pigpiod_if_version() << std::endl;
std::cout << "\n" << std::endl;
}
int show_error( int error )
{
return error;
}
} // namespace pigpio

373
libpigpio.h Normal file
View File

@@ -0,0 +1,373 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef LIBPIGPIO_H
#define LIBPIGPIO_H
#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
# define Q_DECL_EXPORT __declspec(dllexport)
# define Q_DECL_IMPORT __declspec(dllimport)
#else
# define Q_DECL_EXPORT __attribute__((visibility("default")))
# define Q_DECL_IMPORT __attribute__((visibility("default")))
#endif
#if defined(LIBPIGPIO_LIBRARY)
# define LIBPIGPIO_EXPORT Q_DECL_EXPORT
#else
# define LIBPIGPIO_EXPORT Q_DECL_IMPORT
#endif
#include <chrono>
#include <thread>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <cstdint>
#include <string>
#include <signal.hpp>
#include <time.h>
struct pigI2C;
class pigCall;
namespace pigpio
{
class pigCore;
[[maybe_unused]] const int GlitchDef = 500;
[[maybe_unused]] const double TimeoutDef = 0.2;
enum class edge_t : uint32_t
{
rising = 0,
falling = 1,
either = 2,
edge_off = 99
};
enum class io_t : uint32_t
{
input = 0,
output = 1,
io_off = 99
};
enum class bcm_t : uint32_t
{
/// left side, pin 1,3 ... 39
bcm02 = 2,
bcm03 = 3,
bcm04 = 4,
bcm17 = 17,
bcm27 = 27,
bcm22 = 22,
bcm10 = 10,
bcm09 = 9,
bcm11 = 11,
bcm05 = 5,
bcm06 = 6,
bcm13 = 7,
bcm19 = 19,
bcm26 = 9,
/// right side, pin 2,4 .. 40
bcm14 = 14,
bcm15 = 15,
bcm18 = 18,
bcm23 = 23,
bcm24 = 24,
bcm25 = 25,
bcm08 = 8,
bcm07 = 07,
bcm12 = 12,
bcm16 = 16,
bcm20 = 20,
bcm21 = 21,
bcm_off = 99
};
enum class pud_t : uint32_t
{
pull_off = 0,
pull_down = 1,
pull_up = 2,
};
using level_t = uint32_t;
///
/// i2c
///
using i2c_bus_t = uint32_t; // uint8_t ??
using i2c_addr_t = uint32_t;
using i2c_flag_t = uint32_t;
/// sugar
[[maybe_unused]] constexpr static edge_t rising = edge_t::rising;
[[maybe_unused]] constexpr static edge_t falling = edge_t::falling;
[[maybe_unused]] constexpr static edge_t either = edge_t::either;
///---
[[maybe_unused]] constexpr static io_t input = io_t::input;
[[maybe_unused]] constexpr static io_t output = io_t::output;
///---
[[maybe_unused]] constexpr static pud_t pull_off = pud_t::pull_off;
[[maybe_unused]] constexpr static pud_t pull_down = pud_t::pull_down;
[[maybe_unused]] constexpr static pud_t pull_up = pud_t::pull_up;
///---
/// left side, pin 1,3 ... 39
[[maybe_unused]] constexpr static bcm_t bcm02 = bcm_t::bcm02;
[[maybe_unused]] constexpr static bcm_t bcm03 = bcm_t::bcm03;
[[maybe_unused]] constexpr static bcm_t bcm04 = bcm_t::bcm04;
[[maybe_unused]] constexpr static bcm_t bcm17 = bcm_t::bcm17;
[[maybe_unused]] constexpr static bcm_t bcm27 = bcm_t::bcm27;
[[maybe_unused]] constexpr static bcm_t bcm22 = bcm_t::bcm22;
[[maybe_unused]] constexpr static bcm_t bcm10 = bcm_t::bcm10;
[[maybe_unused]] constexpr static bcm_t bcm09 = bcm_t::bcm09;
[[maybe_unused]] constexpr static bcm_t bcm11 = bcm_t::bcm11;
[[maybe_unused]] constexpr static bcm_t bcm05 = bcm_t::bcm05;
[[maybe_unused]] constexpr static bcm_t bcm06 = bcm_t::bcm06;
[[maybe_unused]] constexpr static bcm_t bcm13 = bcm_t::bcm07;
[[maybe_unused]] constexpr static bcm_t bcm19 = bcm_t::bcm19;
[[maybe_unused]] constexpr static bcm_t bcm26 = bcm_t::bcm09;
/// right side, pin 2,4 .. 40
[[maybe_unused]] constexpr static bcm_t bcm14 = bcm_t::bcm04;
[[maybe_unused]] constexpr static bcm_t bcm15 = bcm_t::bcm15;
[[maybe_unused]] constexpr static bcm_t bcm18 = bcm_t::bcm18;
[[maybe_unused]] constexpr static bcm_t bcm23 = bcm_t::bcm23;
[[maybe_unused]] constexpr static bcm_t bcm24 = bcm_t::bcm24;
[[maybe_unused]] constexpr static bcm_t bcm25 = bcm_t::bcm25;
[[maybe_unused]] constexpr static bcm_t bcm08 = bcm_t::bcm08;
[[maybe_unused]] constexpr static bcm_t bcm07 = bcm_t::bcm07;
[[maybe_unused]] constexpr static bcm_t bcm12 = bcm_t::bcm12;
[[maybe_unused]] constexpr static bcm_t bcm16 = bcm_t::bcm16;
[[maybe_unused]] constexpr static bcm_t bcm20 = bcm_t::bcm20;
[[maybe_unused]] constexpr static bcm_t bcm21 = bcm_t::bcm21;
/// more sugar
/// left side, pin 1,3 ... 39
[[maybe_unused]] constexpr static bcm_t pin03 = bcm_t::bcm02;
[[maybe_unused]] constexpr static bcm_t pin05 = bcm_t::bcm03;
[[maybe_unused]] constexpr static bcm_t pin07 = bcm_t::bcm04;
[[maybe_unused]] constexpr static bcm_t pin11 = bcm_t::bcm17;
[[maybe_unused]] constexpr static bcm_t pin13 = bcm_t::bcm27;
[[maybe_unused]] constexpr static bcm_t pin15 = bcm_t::bcm22;
[[maybe_unused]] constexpr static bcm_t pin19 = bcm_t::bcm10;
[[maybe_unused]] constexpr static bcm_t pin21 = bcm_t::bcm09;
[[maybe_unused]] constexpr static bcm_t pin23 = bcm_t::bcm11;
[[maybe_unused]] constexpr static bcm_t pin29 = bcm_t::bcm05;
[[maybe_unused]] constexpr static bcm_t pin31 = bcm_t::bcm06;
[[maybe_unused]] constexpr static bcm_t pin33 = bcm_t::bcm13;
[[maybe_unused]] constexpr static bcm_t pin35 = bcm_t::bcm19;
[[maybe_unused]] constexpr static bcm_t pin37 = bcm_t::bcm26;
/// right side, pin 2,4 .. 40
[[maybe_unused]] constexpr static bcm_t pin08 = bcm_t::bcm14;
[[maybe_unused]] constexpr static bcm_t pin10 = bcm_t::bcm15;
[[maybe_unused]] constexpr static bcm_t pin12 = bcm_t::bcm18;
[[maybe_unused]] constexpr static bcm_t pin16 = bcm_t::bcm23;
[[maybe_unused]] constexpr static bcm_t pin18 = bcm_t::bcm24;
[[maybe_unused]] constexpr static bcm_t pin22 = bcm_t::bcm25;
[[maybe_unused]] constexpr static bcm_t pin24 = bcm_t::bcm08;
[[maybe_unused]] constexpr static bcm_t pin26 = bcm_t::bcm07;
[[maybe_unused]] constexpr static bcm_t pin32 = bcm_t::bcm12;
[[maybe_unused]] constexpr static bcm_t pin36 = bcm_t::bcm16;
[[maybe_unused]] constexpr static bcm_t pin38 = bcm_t::bcm20;
[[maybe_unused]] constexpr static bcm_t pin40 = bcm_t::bcm21;
/*
GPIO pin pin GPIO
3V3 1 2 5V
2 (SDA) 3 4 5V
3 (SCL) 5 6 0V
4 7 8 14 (TXD)
0V 9 10 15 (RXD)
17 (ce1) 11 12 18 (ce0)
27 13 14 0V
22 15 16 23
3V3 17 18 24
10 (MOSI) 19 20 0V
9 (MISO) 21 22 25
11 (SCLK) 23 24 8 (CE0)
0V 25 26 7 (CE1)
.......
0 (ID_SD) 27 28 1 (ID_SC)
5 29 30 0V
6 31 32 12
13 33 34 0V
19 (miso) 35 36 16 (ce2)
26 37 38 20 (mosi)
0V 39 40 21 (sclk)
*/
// fragwürdig
[[maybe_unused]] constexpr static level_t low = 0;
[[maybe_unused]] constexpr static level_t high = 1;
[[maybe_unused]] constexpr static level_t off = 0;
[[maybe_unused]] constexpr static level_t on = 1;
//map<bcm> -> pin
// op<
[[maybe_unused]] constexpr static uint32_t TimeOut = 2;
[[maybe_unused]] constexpr static const char* Version = "libPiGPIO 0.1.27 / 16.09.2022 2022 chris@sourceworx.org";
LIBPIGPIO_EXPORT pigCore& get_instance();
LIBPIGPIO_EXPORT int init( const std::string& host ="" , const std::string& port="" );
// pin config
LIBPIGPIO_EXPORT int get_io_mode( bcm_t bcm );
LIBPIGPIO_EXPORT int set_io_mode( bcm_t bcm, io_t mode );
LIBPIGPIO_EXPORT int set_pud_mode( bcm_t bcm, pud_t pud );
LIBPIGPIO_EXPORT int set_glitch_filter( bcm_t bcm, uint32_t glitch = GlitchDef );
LIBPIGPIO_EXPORT int set_noise_filter( bcm_t bcm, uint32_t steady, uint32_t active ) ;
// pin operations
LIBPIGPIO_EXPORT int get_level( bcm_t bcm );
LIBPIGPIO_EXPORT int set_level( bcm_t bcm, level_t level ) ;
LIBPIGPIO_EXPORT int trigger_level( bcm_t bcm, level_t level, uint32_t pulseLen );
LIBPIGPIO_EXPORT int wait_for_edge( bcm_t bcm, edge_t edge, double timeout = TimeoutDef );
// reality interface
LIBPIGPIO_EXPORT int set_callback( bcm_t bcm, pigCall* fn, edge_t edge );
LIBPIGPIO_EXPORT int cancel_callback( int cbId );
// software PWM
/*
set_PWM_dutycycle Start/stop PWM pulses on a GPIO
set_PWM_frequency Configure PWM frequency for a GPIO
set_PWM_range Configure PWM range for a GPIO
get_PWM_dutycycle Get the PWM dutycycle in use on a GPIO
get_PWM_frequency Get configured PWM frequency for a GPIO
get_PWM_range Get configured PWM range for a GPIO
get_PWM_real_range Get underlying PWM range for a GPIO
*/
// i2c
LIBPIGPIO_EXPORT int i2c_open( pigI2C& i2c );
LIBPIGPIO_EXPORT int i2c_close( pigI2C& i2c );
/*
LIBPIGPIO_EXPORT int i2c_write_quick( pigI2C& i2c, uint32_t bit );
LIBPIGPIO_EXPORT int i2c_write_byte( pigI2C& i2c, uint32_t bVal );
LIBPIGPIO_EXPORT int i2c_write_byte_data( pigI2C& i2c, uint32_t reg, uint32_t val );
LIBPIGPIO_EXPORT int i2c_write_word_data( pigI2C& i2c, uint32_t reg, uint32_t val );
LIBPIGPIO_EXPORT int i2c_write_block_data( pigI2C& i2c, uint32_t reg, char* buf, uint32_t count );
LIBPIGPIO_EXPORT int i2c_write_i2c_block_data( pigI2C& i2c, uint32_t reg, char* buf, uint32_t count );
*/
LIBPIGPIO_EXPORT int i2c_write_device( pigI2C& i2c, char* buf, uint32_t count );
/*
LIBPIGPIO_EXPORT int i2c_read_byte( pigI2C& i2c );
LIBPIGPIO_EXPORT int i2c_read_byte_data( pigI2C& i2c, uint32_t reg );
LIBPIGPIO_EXPORT int i2c_read_word_data( pigI2C& i2c, uint32_t reg );
LIBPIGPIO_EXPORT int i2c_read_block_data( pigI2C& i2c, uint32_t reg, char* buf );
LIBPIGPIO_EXPORT int i2c_read_i2c_block_data( pigI2C& i2c, uint32_t reg, char* buf, uint32_t count );
LIBPIGPIO_EXPORT int i2c_read_device( pigI2C& i2c, char* buf, uint32_t count );
LIBPIGPIO_EXPORT int i2c_process_call( pigI2C& i2c, uint32_t i2c_reg, uint32_t wVal);
LIBPIGPIO_EXPORT int i2c_block_process_call( pigI2C& i2c, uint32_t i2c_reg, char* buf, uint32_t count );
LIBPIGPIO_EXPORT int i2c_zip( pigI2C& i2c, char *inBuf, uint32_t inLen, char *outBuf, uint32_t outLen );
*/
// advanced
LIBPIGPIO_EXPORT int hardware_PWM( bcm_t bcm, uint32_t PWMfreq, uint32_t PWMduty ) ;
LIBPIGPIO_EXPORT int hardware_clock( bcm_t bcm, uint32_t clkfreq );
LIBPIGPIO_EXPORT uint32_t get_current_tick();
// finally
//LIBPIGPIO_EXPORT void trigger( int pi, bcm_t pin, level_t level, uint32_t tick, void *user );
LIBPIGPIO_EXPORT void trigger( int pi, unsigned bcm, unsigned level, uint32_t tick, void *user );
LIBPIGPIO_EXPORT void greet();
LIBPIGPIO_EXPORT void wait_loop();
// timer
LIBPIGPIO_EXPORT void delay_seconds( uint32_t );
LIBPIGPIO_EXPORT void delay_millis( uint32_t );
LIBPIGPIO_EXPORT void delay_micros( uint32_t );
// util
template< typename T >
LIBPIGPIO_EXPORT std::string val2str( T value, int fixed=2 )
{
std::ostringstream sout;
sout << std::fixed << std::setprecision( fixed );
sout << value;
return sout.str();
}
} // namespace
using signalBool = sigslot::signal<bool>;
using signalInt = sigslot::signal<int>;
using signalFloat = sigslot::signal<double>;
#endif // LIBPIGPIO_H

301
libpigwindows.cpp Normal file
View File

@@ -0,0 +1,301 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
/// ---
#ifdef _WIN32
#include <iostream>
#include <libpigwindows.h>
#include <ws2tcpip.h>
#include <winsock2.h>
#include <windows.h>
namespace pigpio
{
int pigWindows::init( const std::string& , const std::string& )
{
//::gpioInitialise();
return 42;
}
//
// pin config
//
int pigWindows::set_io_mode( bcm_t, io_t )
{
//::set_io_mode( _Pi, pin.bcm, pin.mode );
return 0;
}
int pigWindows::get_io_mode( bcm_t )
{
return 0;
}
int pigWindows::set_pud_mode( bcm_t, pud_t )
{
//::set_pud_mode( _Pi, pin.bcm, pin.pud );
return 0;
}
int pigWindows::set_glitch_filter( bcm_t, uint32_t )
{
// ::set_glitch_filter( _Pi, pin.bcm, glitch );
return 0;
}
//Sets a noise filter on a GPIO.
int pigWindows::set_noise_filter( bcm_t, uint32_t, uint32_t )
{
//int set_noise_filter(int pi, unsigned user_gpio, unsigned steady, unsigned active)
return 0;
}
///
/// pin operations
///
int pigWindows::get_level( bcm_t )
{
return 0;
}
int pigWindows::set_level( bcm_t, level_t )
{
return 0;
}
int pigWindows::wait_for_edge( bcm_t, edge_t, double )
{
return 0;
}
//This function sends a trigger pulse to a GPIO. The GPIO is set to level for pulseLen microseconds and then reset to not level.
int pigWindows::trigger_level( bcm_t, level_t, uint32_t )
{
//int trigger_level(int pi, unsigned user_gpio, unsigned pulseLen, unsigned level)
return 0;
}
///
/// interface
///
int pigWindows::set_callback( bcm_t, pigCall*, edge_t )
{
//::callback_ex( _Pi, pin.bcm, pin.edge, &pigNode::trigger, (void*) &widget );
//pin.cbId = ::callback_ex( _Pi, pin.bcm, pin.edge, trigger, widget );
return 0;
}
int pigWindows::cancel_callback( int )
{
return 0;
}
///
/// ic2
///
int pigWindows::i2c_open( pigI2C& )
{
return 0;
}
int pigWindows::i2c_close( pigI2C& )
{
return 0;
}
/*
int pigWindows::i2c_write_quick( pigI2C&, unsigned )
{
return 0;
}
int pigWindows::i2c_write_byte( pigI2C&, unsigned )
{
return 0;
}
int pigWindows::i2c_write_byte_data( pigI2C&, unsigned, unsigned )
{
return 0;
}
int pigWindows::i2c_write_word_data( pigI2C&, unsigned, unsigned )
{
return 0;
}
int pigWindows::i2c_write_block_data( pigI2C&, unsigned, char* buf, unsigned count )
{
return 0;
}
int pigWindows::i2c_write_i2c_block_data( pigI2C&, unsigned, char* buf, unsigned count )
{
return 0;
}*/
int pigWindows::i2c_write_device( pigI2C&, char*, unsigned )
{
return 0;
}
/*
int pigWindows::i2c_read_byte( pigI2C& )
{
return 0;
}
int pigWindows::i2c_read_byte_data( pigI2C&, unsigned )
{
return 0;
}
int pigWindows::i2c_read_word_data( pigI2C&, unsigned )
{
return 0;
}
int pigWindows::i2c_read_block_data( pigI2C&, unsigned, char* )
{
return 0;
}
int pigWindows::i2c_read_i2c_block_data( pigI2C&, unsigned, char*, unsigned )
{
return 0;
}
int pigWindows::i2c_read_device( pigI2C&, char* buf, unsigned )
{
return 0;
}
int pigWindows::i2c_process_call( pigI2C&, unsigned, unsigned )
{
return 0;
}
int pigWindows::i2c_block_process_call( pigI2C&, unsigned, char*, unsigned )
{
return 0;
}
int pigWindows::i2c_zip( pigI2C&, char*, unsigned, char*, unsigned )
{
return 0;
}
*/
///
/// advanced
///
//Starts hardware PWM on a GPIO at the specified frequency and dutycycle. Frequencies above 30MHz are unlikely to work.
int pigWindows::hardware_PWM( bcm_t, uint32_t, uint32_t )
{
//int hardware_PWM(int pi, unsigned gpio, unsigned PWMfreq, uint32_t PWMduty)
return 0;
}
///
/// convenience
///
int pigWindows::show_error( int error )
{
std::cout << "Error: " << std::endl;
return error;
}
//Starts a hardware clock on a GPIO at the specified frequency. Frequencies above 30MHz are unlikely to work.
int pigWindows::hardware_clock( bcm_t, uint32_t )
{
//int hardware_clock(int pi, unsigned gpio, unsigned clkfreq)
return 0;
}
uint32_t pigWindows::get_current_tick()
{
//int hardware_clock(int pi, unsigned gpio, unsigned clkfreq)
return 0;
}
//Get the Pi's hardware revision number.
int pigWindows::get_hardware_revision()
{
//uint32_t get_hardware_revision(int pi)
return 0;
}
//Returns the pigpio version.
int pigWindows::get_pigpio_version()
{
//uint32_t get_pigpio_version(int pi)
return 0;
}
//Return the pigpiod_if2 version.
unsigned pigWindows::pigpiod_if_version()
{
//unsigned pigpiod_if_version(void)
return 0;
}
} // namespace
#endif

128
libpigwindows.h Normal file
View File

@@ -0,0 +1,128 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2.h
by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot.h
by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef LIBPIGWINDOWS_H
#define LIBPIGWINDOWS_H
#include <libpigpio.h>
#include <libpigcore.h>
struct pigI2C;
namespace pigpio
{
class LIBPIGPIO_EXPORT pigWindows : public pigCore
{
friend pigCore& get_instance();
public:
pigWindows( const pigWindows& ) = delete;
void operator=( const pigWindows& ) = delete;
virtual ~pigWindows() = default;
int init( const std::string& host ="", const std::string& port="" ) override;
// pin config
int set_io_mode( bcm_t bcm, io_t mode ) override;
int get_io_mode( bcm_t bcm ) override;
int set_pud_mode( bcm_t bcm, pud_t pud ) override;
int set_glitch_filter( bcm_t bcm, uint32_t glitch = GlitchDef ) override;
int set_noise_filter( bcm_t bcm, uint32_t steady, uint32_t active ) override;
// pin operations
int get_level( bcm_t bcm ) override;
int set_level( bcm_t bcm, level_t level ) override;
int wait_for_edge( bcm_t bcm, edge_t edge, double timeout = 60 ) override;
int trigger_level( bcm_t bcm, level_t level, uint32_t pulseLen ) override;
// interface
int set_callback( bcm_t bcm, pigCall* user, edge_t edge = either ) override;
int cancel_callback( int cbId ) override;
// software PWM
/*
set_PWM_dutycycle Start/stop PWM pulses on a GPIO
set_PWM_frequency Configure PWM frequency for a GPIO
set_PWM_range Configure PWM range for a GPIO
get_PWM_dutycycle Get the PWM dutycycle in use on a GPIO
get_PWM_frequency Get configured PWM frequency for a GPIO
get_PWM_range Get configured PWM range for a GPIO
get_PWM_real_range Get underlying PWM range for a GPIO
*/
// i2c
int i2c_open( pigI2C& i2c ) override;
int i2c_close( pigI2C& i2c ) override;
/*
int i2c_write_quick( pigI2C& i2c, unsigned bit ) override;
int i2c_write_byte( pigI2C& i2c, unsigned bVal ) override;
int i2c_write_byte_data( pigI2C& i2c, unsigned reg, unsigned val ) override;
int i2c_write_word_data( pigI2C& i2c, unsigned reg, unsigned val ) override;
int i2c_write_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) override;
int i2c_write_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) override;
*/
int i2c_write_device( pigI2C& i2c, char* buf, unsigned count ) override;
/*
int i2c_read_byte( pigI2C& i2c ) override;
int i2c_read_byte_data( pigI2C& i2c, unsigned reg ) override;
int i2c_read_word_data( pigI2C& i2c, unsigned reg ) override;
int i2c_read_block_data( pigI2C& i2c, unsigned reg, char* buf ) override;
int i2c_read_i2c_block_data( pigI2C& i2c, unsigned reg, char* buf, unsigned count ) override;
int i2c_read_device( pigI2C& i2c, char* buf, unsigned count ) override;
int i2c_process_call( pigI2C& i2c, unsigned i2c_reg, unsigned wVal ) override;
int i2c_block_process_call( pigI2C& i2c,unsigned i2c_reg, char* buf, unsigned count ) override;
int i2c_zip( pigI2C& i2c, char* inBuf, unsigned inLen, char* outBuf, unsigned outLen ) override;
*/
// advanced
int hardware_PWM( bcm_t bcm, uint32_t PWMfreq, uint32_t PWMduty ) override;
int hardware_clock( bcm_t bcm, uint32_t clkfreq ) override;
uint32_t get_current_tick() override;
// convenience
int show_error( int error ) override;
// info
int get_hardware_revision() override;
int get_pigpio_version() override;
unsigned pigpiod_if_version() override;
private:
pigWindows() = default;
};
} // namespace pigpio
#endif // LIBPIGWINDOWS_H

175
main.cpp Normal file
View File

@@ -0,0 +1,175 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <iostream>
#include <ctime>
#include <libpigpio.h>
#include <pigbutton.h>
#include <pigtimer.h>
#include <pigrotarydial.h>
#include <pigchrono.h>
#include <pigsonar.h>
#include <piglcd.h>
#include <pigbeeper.h>
#include <pigbuzzer.h>
#include <pigbutton.h>
#include <pigled.h>
#include <QApplication>
#include <QtGPIOMain.h>
using namespace std;
using namespace pigpio;
void on_level( level_t level )
{
cout << "on_level:" << level << endl;
}
namespace qtgpio
{
// LED
[[maybe_unused]] static const char* const icnRed = ":images/Red.png";
[[maybe_unused]] static const char* const icnGreen = ":images/Green.png";
/// misc
[[maybe_unused]] static const char* const version = "Version 0.8.43, 19.10.2022 © 2022 chris@sourceworx.org";
}
//#define high true
[[maybe_unused]] constexpr static const char* mainVersion = "libPiGPIO 0.2.11 / 19.10.2022 © 2022 chris@sourceworx.org";
void funktion( double state ) { std::cout << "free function: " << state << std::endl; }
int main( int argc, char** argv )
{
Q_UNUSED(argc)
Q_UNUSED(argv)
//pigpio::init( "host", "port" );
greet();
// Blink is the “Hello World” of the microcontroller world.
// It usually does nothing more than flash an LED or 2.
// (Gordon Henderson, WiringPi )
pigLCD lcd( 0x27 );
lcd.set_backlight( on );
lcd.write( 0, 0, "blink!" );
/*
on_level( 1 );
on_level( true );
on_level( pigpio::high );
on_level( high );
*/
/*
// ein 'Drückschalter' an Pin GPIO 16
pigButton button( bcm16 );
// eine LED und ein Summer an Pin 12 und Pin 23
pigLED LED( bcm12 );
pigBuzzer buzzer( bcm23 );
// Zustände verknüpfen
button.connect_state( LED );
button.connect_state( buzzer );
// 'connect_state' ist die Kurzform von
// sigState.connect( &T::change_state, &listener );
*/
/*
pigBeeper beeper( bcm25 );
std::vector<double> tnv = { 262.0, 294.0, 330.0, 262.0 };
std::vector<double> drv = { 0.5, 0.5, 0.5, 0.5 };
beeper.play_tune( tnv, drv );
beeper.play_tone( 295, 0.3 );
*/
//pigRotaryDial dial( pigpio::bcm17, pigpio::bcm27, pigpio::bcm22 );
//pigRotaryDial dial( board17, board27, board22 );
pigRotaryDial dialA( bcm17, bcm27, bcm22 );
pigRotaryDial dialB( bcm16, bcm20, bcm21 );
dialA.sigValue.connect( [&](int value){ cout << "Dial A: " << value << endl; } );
dialB.sigValue.connect( [&](int value){ cout << "Dial B: " << value << endl; } );
/*
pigSonar sonar( bcm21, bcm20 );
sonar.sigValue.connect( [&](double dist){ buzzer.buzz( 100, dist*50 ); } );
sonar.start( 20 );
*/
/*
while( loop )
{
//double dist = sonar.distance();
//lcd.write( 0, 0, "Dist.: " + val2str( dist) + " cm" );
if( dist < 20 )
{
buzzer.buzz( 100, dist*50 );
LED.blink( dist*30 );
}
delay_millis( 200 );
}
*/
/*
bool loop = true;
button.sigState.connect( [&](bool){ loop = false; } );
while( loop )
{
lcd.write( 0,0, format_time() );
delay_seconds( 1 );
}
lcd.reset();
*/
wait_loop();
/*
QApplication application( argc, argv );
QtGPIOMain window;
window.show();
return application.exec();
*/
}

95
moc_QtGPIOMain.cpp Normal file
View File

@@ -0,0 +1,95 @@
/****************************************************************************
** Meta object code from reading C++ file 'QtGPIOMain.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "QtGPIOMain.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'QtGPIOMain.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QtGPIOMain_t {
QByteArrayData data[1];
char stringdata0[11];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_QtGPIOMain_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_QtGPIOMain_t qt_meta_stringdata_QtGPIOMain = {
{
QT_MOC_LITERAL(0, 0, 10) // "QtGPIOMain"
},
"QtGPIOMain"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_QtGPIOMain[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
0, 0, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount
0 // eod
};
void QtGPIOMain::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
Q_UNUSED(_o);
Q_UNUSED(_id);
Q_UNUSED(_c);
Q_UNUSED(_a);
}
QT_INIT_METAOBJECT const QMetaObject QtGPIOMain::staticMetaObject = { {
QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
qt_meta_stringdata_QtGPIOMain.data,
qt_meta_data_QtGPIOMain,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *QtGPIOMain::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *QtGPIOMain::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_QtGPIOMain.stringdata0))
return static_cast<void*>(this);
return QMainWindow::qt_metacast(_clname);
}
int QtGPIOMain::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QMainWindow::qt_metacall(_c, _id, _a);
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

471
moc_predefs.h Normal file
View File

@@ -0,0 +1,471 @@
#define __DBL_MIN_EXP__ (-1021)
#define __HQ_FBIT__ 15
#define __cpp_nontype_template_parameter_auto 201606L
#define __UINT_LEAST16_MAX__ 0xffff
#define __ARM_SIZEOF_WCHAR_T 4
#define __SFRACT_IBIT__ 0
#define __FLT_MIN__ 1.1754943508222875e-38F
#define __GCC_IEC_559_COMPLEX 2
#define __cpp_aggregate_nsdmi 201304L
#define __UFRACT_MAX__ 0XFFFFP-16UR
#define __UINT_LEAST8_TYPE__ unsigned char
#define __FLT_MAX_EXP__ 128
#define __DQ_FBIT__ 63
#define __INTMAX_C(c) c ## LL
#define __ARM_FEATURE_SAT 1
#define __ULFRACT_FBIT__ 32
#define __CHAR_BIT__ 8
#define __USQ_IBIT__ 0
#define __UINT8_MAX__ 0xff
#define __ACCUM_FBIT__ 15
#define __WINT_MAX__ 0xffffffffU
#define __FLT32_MIN_EXP__ (-125)
#define __cpp_static_assert 201411L
#define __USFRACT_FBIT__ 8
#define __ORDER_LITTLE_ENDIAN__ 1234
#define __SIZE_MAX__ 0xffffffffU
#define __ARM_ARCH_ISA_ARM 1
#define __WCHAR_MAX__ 0xffffffffU
#define __LACCUM_IBIT__ 32
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
#define __DBL_DENORM_MIN__ double(4.9406564584124654e-324L)
#define __GCC_ATOMIC_CHAR_LOCK_FREE 1
#define __GCC_IEC_559 2
#define __FLT32X_DECIMAL_DIG__ 17
#define __FLT_EVAL_METHOD__ 0
#define __TQ_IBIT__ 0
#define __cpp_binary_literals 201304L
#define __LLACCUM_MAX__ 0X7FFFFFFFFFFFFFFFP-31LLK
#define __FLT64_DECIMAL_DIG__ 17
#define __cpp_noexcept_function_type 201510L
#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __cpp_variadic_templates 200704L
#define __INTPTR_WIDTH__ 32
#define __UINT_FAST64_MAX__ 0xffffffffffffffffULL
#define __SIG_ATOMIC_TYPE__ int
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
#define __ARMEL__ 1
#define __cpp_variable_templates 201304L
#define __FLT32X_MAX_EXP__ 1024
#define __LFRACT_IBIT__ 0
#define __GNUC_PATCHLEVEL__ 1
#define __FLT32_HAS_DENORM__ 1
#define __USA_FBIT__ 16
#define __UINT_FAST8_MAX__ 0xff
#define __cpp_rvalue_reference 200610L
#define __INT8_C(c) c
#define __INT_LEAST8_WIDTH__ 8
#define __cpp_variadic_using 201611L
#define __UINT_LEAST64_MAX__ 0xffffffffffffffffULL
#define __INT16_MAX__ 0x7fff
#define __cpp_attributes 200809L
#define __SA_FBIT__ 15
#define __cpp_capture_star_this 201603L
#define __APCS_32__ 1
#define __SHRT_MAX__ 0x7fff
#define __LDBL_MAX__ 1.7976931348623157e+308L
#define __FRACT_MAX__ 0X7FFFP-15R
#define __cpp_if_constexpr 201606L
#define __UFRACT_FBIT__ 16
#define __ARM_FP 12
#define __UFRACT_MIN__ 0.0UR
#define __UINT_LEAST8_MAX__ 0xff
#define __GCC_ATOMIC_BOOL_LOCK_FREE 1
#define __UINTMAX_TYPE__ long long unsigned int
#define __LLFRACT_EPSILON__ 0x1P-63LLR
#define __linux 1
#define __FLT_EVAL_METHOD_TS_18661_3__ 0
#define __CHAR_UNSIGNED__ 1
#define __UINT32_MAX__ 0xffffffffU
#define __GXX_EXPERIMENTAL_CXX0X__ 1
#define __ULFRACT_MAX__ 0XFFFFFFFFP-32ULR
#define __TA_IBIT__ 64
#define __LDBL_MAX_EXP__ 1024
#define __WINT_MIN__ 0U
#define __INT_LEAST16_WIDTH__ 16
#define __ULLFRACT_MIN__ 0.0ULLR
#define __SCHAR_MAX__ 0x7f
#define __WCHAR_MIN__ 0U
#define __INT64_C(c) c ## LL
#define __GCC_ATOMIC_POINTER_LOCK_FREE 2
#define __LLACCUM_MIN__ (-0X1P31LLK-0X1P31LLK)
#define __SIZEOF_INT__ 4
#define __FLT32X_MANT_DIG__ 53
#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 1
#define __USACCUM_IBIT__ 8
#define __cpp_aligned_new 201606L
#define __USER_LABEL_PREFIX__
#define __STDC_HOSTED__ 1
#define __FLT_DIG__ 6
#define __LFRACT_MIN__ (-0.5LR-0.5LR)
#define __HA_IBIT__ 8
#define __cpp_decltype_auto 201304L
#define __FLT32_DIG__ 6
#define __FLT_EPSILON__ 1.1920928955078125e-7F
#define __GXX_WEAK__ 1
#define __SHRT_WIDTH__ 16
#define __USFRACT_IBIT__ 0
#define __LDBL_MIN__ 2.2250738585072014e-308L
#define __FRACT_MIN__ (-0.5R-0.5R)
#define __DA_IBIT__ 32
#define __ARM_SIZEOF_MINIMAL_ENUM 4
#define __FLT32X_HAS_INFINITY__ 1
#define __UQQ_FBIT__ 8
#define __SIZEOF_LONG__ 4
#define __UACCUM_MAX__ 0XFFFFFFFFP-16UK
#define __STDC_IEC_559__ 1
#define __STDC_ISO_10646__ 201706L
#define __DECIMAL_DIG__ 17
#define __LFRACT_EPSILON__ 0x1P-31LR
#define __STDC_IEC_559_COMPLEX__ 1
#define __FLT64_EPSILON__ 2.2204460492503131e-16F64
#define __gnu_linux__ 1
#define __FLT64_MIN_EXP__ (-1021)
#define __ARM_PCS_VFP 1
#define __LDBL_HAS_QUIET_NAN__ 1
#define __ULACCUM_IBIT__ 32
#define __FLT64_MANT_DIG__ 53
#define __GXX_RTTI 1
#define __UACCUM_EPSILON__ 0x1P-16UK
#define __GNUC__ 10
#define __ULLACCUM_MAX__ 0XFFFFFFFFFFFFFFFFP-32ULLK
#define __HQ_IBIT__ 0
#define __FLT_HAS_DENORM__ 1
#define __SIZEOF_LONG_DOUBLE__ 8
#define __SA_IBIT__ 16
#define __BIGGEST_ALIGNMENT__ 8
#define __STDC_UTF_16__ 1
#define __INTPTR_TYPE__ int
#define __FLT64_MAX_10_EXP__ 308
#define __DBL_DIG__ 15
#define __ULLACCUM_FBIT__ 32
#define __GNUC_STDC_INLINE__ 1
#define __DQ_IBIT__ 0
#define __DBL_MAX__ double(1.7976931348623157e+308L)
#define __ULFRACT_IBIT__ 0
#define __cpp_raw_strings 200710L
#define __INT_FAST32_MAX__ 0x7fffffff
#define __DBL_HAS_INFINITY__ 1
#define __HAVE_SPECULATION_SAFE_VALUE 1
#define __cpp_fold_expressions 201603L
#define __ACCUM_IBIT__ 16
#define __THUMB_INTERWORK__ 1
#define __UINT_LEAST32_MAX__ 0xffffffffU
#define __ULLACCUM_IBIT__ 32
#define __LACCUM_MAX__ 0X7FFFFFFFFFFFFFFFP-31LK
#define __cpp_delegating_constructors 200604L
#define __FLT32X_HAS_DENORM__ 1
#define __INT_FAST16_TYPE__ int
#define __LDBL_HAS_DENORM__ 1
#define __ARM_FEATURE_LDREX 4
#define __cplusplus 201703L
#define __cpp_ref_qualifiers 200710L
#define __FLT32_DECIMAL_DIG__ 9
#define __INT_LEAST32_MAX__ 0x7fffffff
#define __ACCUM_MAX__ 0X7FFFFFFFP-15K
#define __DEPRECATED 1
#define __cpp_rvalue_references 200610L
#define __DBL_MAX_EXP__ 1024
#define __USACCUM_EPSILON__ 0x1P-8UHK
#define __WCHAR_WIDTH__ 32
#define __FLT32_MAX__ 3.4028234663852886e+38F32
#define __SFRACT_MAX__ 0X7FP-7HR
#define __FRACT_IBIT__ 0
#define __PTRDIFF_MAX__ 0x7fffffff
#define __UACCUM_MIN__ 0.0UK
#define __UACCUM_IBIT__ 16
#define __FLT32_HAS_QUIET_NAN__ 1
#define __GNUG__ 10
#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL
#define __ULACCUM_MAX__ 0XFFFFFFFFFFFFFFFFP-32ULK
#define __cpp_nsdmi 200809L
#define __SIZEOF_WINT_T__ 4
#define __ARM_FEATURE_UNALIGNED 1
#define __LONG_LONG_WIDTH__ 64
#define __cpp_initializer_lists 200806L
#define __FLT32_MAX_EXP__ 128
#define __ULLACCUM_MIN__ 0.0ULLK
#define __cpp_hex_float 201603L
#define __cpp_threadsafe_static_init 200806L
#define __GXX_ABI_VERSION 1014
#define __UTA_FBIT__ 64
#define __UFRACT_IBIT__ 0
#define __USQ_FBIT__ 32
#define __cpp_enumerator_attributes 201411L
#define __cpp_lambdas 200907L
#define __ARM_FEATURE_QBIT 1
#define __INT_FAST64_TYPE__ long long int
#define __FLT64_DENORM_MIN__ 4.9406564584124654e-324F64
#define __DBL_MIN__ double(2.2250738585072014e-308L)
#define __SIZEOF_POINTER__ 4
#define __INT16_TYPE__ short int
#define __DBL_HAS_QUIET_NAN__ 1
#define __FLT32X_EPSILON__ 2.2204460492503131e-16F32x
#define __LACCUM_MIN__ (-0X1P31LK-0X1P31LK)
#define __FRACT_FBIT__ 15
#define __FLT64_MIN_10_EXP__ (-307)
#define __ULLFRACT_EPSILON__ 0x1P-64ULLR
#define __REGISTER_PREFIX__
#define __UINT16_MAX__ 0xffff
#define __ACCUM_MIN__ (-0X1P15K-0X1P15K)
#define __SQ_IBIT__ 0
#define __UINT8_TYPE__ unsigned char
#define __UHA_FBIT__ 8
#define __SFRACT_MIN__ (-0.5HR-0.5HR)
#define __UTQ_FBIT__ 128
#define __DEC_EVAL_METHOD__ 2
#define __FLT_MANT_DIG__ 24
#define __LDBL_DECIMAL_DIG__ 17
#define __VERSION__ "10.2.1 20210110"
#define __UINT64_C(c) c ## ULL
#define __cpp_unicode_characters 201411L
#define __FRACT_EPSILON__ 0x1P-15R
#define __ULACCUM_MIN__ 0.0ULK
#define _STDC_PREDEF_H 1
#define __UDA_FBIT__ 32
#define __GCC_ATOMIC_INT_LOCK_FREE 2
#define __FLT_MIN_EXP__ (-125)
#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __USFRACT_MIN__ 0.0UHR
#define __FLT32_MANT_DIG__ 24
#define __ULLFRACT_FBIT__ 64
#define __cpp_aggregate_bases 201603L
#define __UQQ_IBIT__ 0
#define __SCHAR_WIDTH__ 8
#define __INT32_C(c) c
#define __ORDER_PDP_ENDIAN__ 3412
#define __UHQ_FBIT__ 16
#define __LLACCUM_FBIT__ 31
#define __INT_FAST32_TYPE__ int
#define __UINT_LEAST16_TYPE__ short unsigned int
#define unix 1
#define __DBL_HAS_DENORM__ 1
#define __cpp_rtti 199711L
#define __SIZE_TYPE__ unsigned int
#define __UINT64_MAX__ 0xffffffffffffffffULL
#define __UDQ_FBIT__ 64
#define __INT8_TYPE__ signed char
#define __cpp_digit_separators 201309L
#define __ELF__ 1
#define __SACCUM_EPSILON__ 0x1P-7HK
#define __ULFRACT_EPSILON__ 0x1P-32ULR
#define __LLFRACT_FBIT__ 63
#define __FLT_RADIX__ 2
#define __INT_LEAST16_TYPE__ short int
#define __LDBL_EPSILON__ 2.2204460492503131e-16L
#define __UINTMAX_C(c) c ## ULL
#define __SACCUM_MAX__ 0X7FFFP-7HK
#define __FLT32X_MIN__ 2.2250738585072014e-308F32x
#define __SIG_ATOMIC_MAX__ 0x7fffffff
#define __UACCUM_FBIT__ 16
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define __VFP_FP__ 1
#define __SIZEOF_PTRDIFF_T__ 4
#define __ATOMIC_ACQUIRE 2
#define __unix__ 1
#define __INT_WIDTH__ 32
#define __OPTIMIZE__ 1
#define __LACCUM_EPSILON__ 0x1P-31LK
#define __LDBL_DIG__ 15
#define __FLT32X_MIN_EXP__ (-1021)
#define __INT_FAST16_MAX__ 0x7fffffff
#define __LFRACT_MAX__ 0X7FFFFFFFP-31LR
#define __ARM_ARCH_6__ 1
#define __FLT64_DIG__ 15
#define __UINT_FAST32_MAX__ 0xffffffffU
#define __UINT_LEAST64_TYPE__ long long unsigned int
#define __SFRACT_EPSILON__ 0x1P-7HR
#define __GCC_ASM_FLAG_OUTPUTS__ 1
#define __FLT_HAS_QUIET_NAN__ 1
#define __FLT_MAX_10_EXP__ 38
#define __LONG_MAX__ 0x7fffffffL
#define __SIZEOF_SIZE_T__ 4
#define __FLT_HAS_INFINITY__ 1
#define __unix 1
#define __cpp_unicode_literals 200710L
#define __cpp_init_captures 201304L
#define __UINT_FAST16_TYPE__ unsigned int
#define __ARM_32BIT_STATE 1
#define __INT_FAST32_WIDTH__ 32
#define __CHAR16_TYPE__ short unsigned int
#define __PRAGMA_REDEFINE_EXTNAME 1
#define __SIZE_WIDTH__ 32
#define __INT_LEAST16_MAX__ 0x7fff
#define __INT64_MAX__ 0x7fffffffffffffffLL
#define __SACCUM_FBIT__ 7
#define __FLT32_DENORM_MIN__ 1.4012984643248171e-45F32
#define __SIG_ATOMIC_WIDTH__ 32
#define __INT_LEAST64_TYPE__ long long int
#define __ARM_FEATURE_CLZ 1
#define __INT_LEAST8_TYPE__ signed char
#define __cpp_structured_bindings 201606L
#define __SQ_FBIT__ 31
#define __USFRACT_MAX__ 0XFFP-8UHR
#define __ARM_ARCH_ISA_THUMB 1
#define __INT_FAST8_MAX__ 0x7f
#define __ARM_ARCH 6
#define __INTPTR_MAX__ 0x7fffffff
#define __cpp_sized_deallocation 201309L
#define __cpp_guaranteed_copy_elision 201606L
#define __QQ_FBIT__ 7
#define linux 1
#define __UTA_IBIT__ 64
#define __FLT64_HAS_QUIET_NAN__ 1
#define __UINT16_C(c) c
#define __PTRDIFF_WIDTH__ 32
#define __LDBL_MANT_DIG__ 53
#define __SFRACT_FBIT__ 7
#define __cpp_range_based_for 201603L
#define __SACCUM_MIN__ (-0X1P7HK-0X1P7HK)
#define __FLT64_HAS_INFINITY__ 1
#define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 8
#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
#define __GCC_ATOMIC_LONG_LOCK_FREE 2
#define __cpp_nontype_template_args 201411L
#define __UINT16_TYPE__ short unsigned int
#define __WCHAR_TYPE__ unsigned int
#define __SIZEOF_FLOAT__ 4
#define __TQ_FBIT__ 127
#define __UINTPTR_MAX__ 0xffffffffU
#define __INT_FAST64_WIDTH__ 64
#define __cpp_decltype 200707L
#define __cpp_nested_namespace_definitions 201411L
#define __INT_FAST64_MAX__ 0x7fffffffffffffffLL
#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
#define __FLT_NORM_MAX__ 3.4028234663852886e+38F
#define __FLT32_HAS_INFINITY__ 1
#define __UINT_FAST64_TYPE__ long long unsigned int
#define __cpp_inline_variables 201606L
#define __LACCUM_FBIT__ 31
#define __HA_FBIT__ 7
#define __UHA_IBIT__ 8
#define __INT64_TYPE__ long long int
#define __UTQ_IBIT__ 0
#define __DBL_MANT_DIG__ 53
#define __cpp_inheriting_constructors 201511L
#define __INT_LEAST64_MAX__ 0x7fffffffffffffffLL
#define __WINT_TYPE__ unsigned int
#define __UINT_LEAST32_TYPE__ unsigned int
#define __SIZEOF_SHORT__ 2
#define __ULLFRACT_IBIT__ 0
#define __FLT32_NORM_MAX__ 3.4028234663852886e+38F32
#define __LDBL_MIN_EXP__ (-1021)
#define __GXX_TYPEINFO_EQUALITY_INLINE 0
#define __INTMAX_MAX__ 0x7fffffffffffffffLL
#define __arm__ 1
#define __FLT64_MAX__ 1.7976931348623157e+308F64
#define __UDA_IBIT__ 32
#define __INT_MAX__ 0x7fffffff
#define __WINT_WIDTH__ 32
#define __cpp_template_auto 201606L
#define __INT_LEAST8_MAX__ 0x7f
#define __INT_LEAST64_WIDTH__ 64
#define __FLT32X_MAX_10_EXP__ 308
#define __LLACCUM_EPSILON__ 0x1P-31LLK
#define __LFRACT_FBIT__ 31
#define __WCHAR_UNSIGNED__ 1
#define __LDBL_MAX_10_EXP__ 308
#define __ATOMIC_RELAXED 0
#define __DBL_EPSILON__ double(2.2204460492503131e-16L)
#define __ARM_FEATURE_SIMD32 1
#define __UINT8_C(c) c
#define __FLT64_MAX_EXP__ 1024
#define __INT_LEAST32_TYPE__ int
#define __cpp_return_type_deduction 201304L
#define __SIZEOF_WCHAR_T__ 4
#define __LLFRACT_MAX__ 0X7FFFFFFFFFFFFFFFP-63LLR
#define __FLT64_NORM_MAX__ 1.7976931348623157e+308F64
#define __INT_FAST8_TYPE__ signed char
#define __cpp_namespace_attributes 201411L
#define __ULLACCUM_EPSILON__ 0x1P-32ULLK
#define __USACCUM_MAX__ 0XFFFFP-8UHK
#define __LDBL_HAS_INFINITY__ 1
#define __FLT32_MAX_10_EXP__ 38
#define __UHQ_IBIT__ 0
#define __ARM_FEATURE_COPROC 15
#define __LLACCUM_IBIT__ 32
#define __ULFRACT_MIN__ 0.0ULR
#define __FLT64_HAS_DENORM__ 1
#define __FLT32_EPSILON__ 1.1920928955078125e-7F32
#define __DBL_DECIMAL_DIG__ 17
#define __STDC_UTF_32__ 1
#define __INT_FAST8_WIDTH__ 8
#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
#define __FLT32X_MAX__ 1.7976931348623157e+308F32x
#define __TA_FBIT__ 63
#define __DBL_NORM_MAX__ double(1.7976931348623157e+308L)
#define __UDQ_IBIT__ 0
#define __INTMAX_WIDTH__ 64
#define __ORDER_BIG_ENDIAN__ 4321
#define __ARM_FEATURE_DSP 1
#define __cpp_runtime_arrays 198712L
#define __UINT64_TYPE__ long long unsigned int
#define __ACCUM_EPSILON__ 0x1P-15K
#define __UINT32_C(c) c ## U
#define __cpp_alias_templates 200704L
#define __QQ_IBIT__ 0
#define __FLT_DENORM_MIN__ 1.4012984643248171e-45F
#define __LLFRACT_IBIT__ 0
#define __INT8_MAX__ 0x7f
#define __LONG_WIDTH__ 32
#define __INT32_MAX__ 0x7fffffff
#define __UINT_FAST32_TYPE__ unsigned int
#define __FLT32X_NORM_MAX__ 1.7976931348623157e+308F32x
#define __CHAR32_TYPE__ unsigned int
#define __FLT32_MIN_10_EXP__ (-37)
#define __FLT_MAX__ 3.4028234663852886e+38F
#define __cpp_constexpr 201603L
#define __USACCUM_FBIT__ 8
#define __cpp_deduction_guides 201703L
#define __INT32_TYPE__ int
#define __SIZEOF_DOUBLE__ 8
#define __cpp_exceptions 199711L
#define __FLT_MIN_10_EXP__ (-37)
#define __UFRACT_EPSILON__ 0x1P-16UR
#define __FLT64_MIN__ 2.2250738585072014e-308F64
#define __INT_LEAST32_WIDTH__ 32
#define __INTMAX_TYPE__ long long int
#define __FLT32X_HAS_QUIET_NAN__ 1
#define __ATOMIC_CONSUME 1
#define __GNUC_MINOR__ 2
#define __INT_FAST16_WIDTH__ 32
#define __UINTMAX_MAX__ 0xffffffffffffffffULL
#define __FLT32X_DENORM_MIN__ 4.9406564584124654e-324F32x
#define __cpp_template_template_args 201611L
#define __ATOMIC_ACQ_REL 4
#define __DBL_MAX_10_EXP__ 308
#define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L
#define __INT16_C(c) c
#define __STDC__ 1
#define __FLT32X_DIG__ 15
#define __PTRDIFF_TYPE__ int
#define __LLFRACT_MIN__ (-0.5LLR-0.5LLR)
#define __USACCUM_MIN__ 0.0UHK
#define __FLT32_MIN__ 1.1754943508222875e-38F32
#define __ATOMIC_SEQ_CST 5
#define __DA_FBIT__ 31
#define __EXCEPTIONS 1
#define __UINT32_TYPE__ unsigned int
#define __FLT32X_MIN_10_EXP__ (-307)
#define __UINTPTR_TYPE__ unsigned int
#define __USA_IBIT__ 16
#define __ARM_EABI__ 1
#define __linux__ 1
#define __LDBL_MIN_10_EXP__ (-307)
#define __cpp_generic_lambdas 201304L
#define __SIZEOF_LONG_LONG__ 8
#define __ULACCUM_EPSILON__ 0x1P-32ULK
#define __cpp_user_defined_literals 200809L
#define __SACCUM_IBIT__ 8
#define __GCC_ATOMIC_LLONG_LOCK_FREE 1
#define __FLT_DECIMAL_DIG__ 9
#define __UINT_FAST16_MAX__ 0xffffffffU
#define __LDBL_NORM_MAX__ 1.7976931348623157e+308L
#define __GCC_ATOMIC_SHORT_LOCK_FREE 1
#define __ULLFRACT_MAX__ 0XFFFFFFFFFFFFFFFFP-64ULLR
#define __UINT_FAST8_TYPE__ unsigned char
#define _GNU_SOURCE 1
#define __USFRACT_EPSILON__ 0x1P-8UHR
#define __ULACCUM_FBIT__ 32
#define __ATOMIC_RELEASE 3

74
pigbeeper.cpp Normal file
View File

@@ -0,0 +1,74 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <pigbeeper.h>
#include <iostream>
pigBeeper::pigBeeper( bcm_t bcmNo )
: pigNodeOut( bcmNo , pull_off )
{
}
pigBeeper::~pigBeeper()
{
}
void pigBeeper::play_tone( double freq, double duration )
{
double halveWaveTime = 1 / ( freq * 2 );
int ms = (int)( 1000 * halveWaveTime );
double waves = duration * freq;
int wv = (int) waves;
//std::cout << "sleep: " << halveWaveTime << " in micros: " << ms << " waves: " << waves << std::endl;
std::thread thrd(
[=]()
{
for( int i=0; i < wv; ++i )
{
_pinOut.set_level( high );
delay_millis( ms );
_pinOut.set_level( low );
delay_millis( ms );
}
} );
thrd.detach();
}
void pigBeeper::play_tune( std::vector<double> frv, std::vector<double> drv )
{
size_t count = std::max( frv.size(), drv.size() );
for( size_t i=0; i<count; ++i )
{
//std::cout << "tone: " << freq[i] << " duration " << duration[i] << std::endl;
play_tone( frv[i], drv[i] );
}
}

50
pigbeeper.h Normal file
View File

@@ -0,0 +1,50 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGBEEPER_H
#define PIGBEEPER_H
#include <pignodeout.h>
#include <pigstate.h>
/**
* @brief The pigBeeper class
* ein __passiver__ Beeper, muss per PWM angesteuert
* werden.
*/
class LIBPIGPIO_EXPORT pigBeeper : public pigNodeOut
{
public:
explicit pigBeeper( pigpio::bcm_t bcmNo );
virtual ~pigBeeper();
void play_tone( double freq, double duration );
void play_tune( std::vector<double> frv, std::vector<double> drv );
};
#endif // PIGBEEPER_H

BIN
pigbin Normal file

Binary file not shown.

69
pigbutton.cpp Normal file
View File

@@ -0,0 +1,69 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <iostream>
#include <pigbutton.h>
pigButton::pigButton()
{
}
pigButton::pigButton( pigpio::bcm_t bcmNo )
{
init( bcmNo );
}
pigButton::~pigButton()
{
}
void pigButton::init( pigpio::bcm_t bcmNo )
{
_pinIn.init( bcmNo, pull_up );
//pinIn.set_callback( this, rising );
_pinIn.set_callback( this, falling );
_pinIn.set_glitch_filter( 500 );
}
void pigButton::change_state( bool newState )
{
if( newState == state() )
return;
set_state( newState );
sigState( _state );
//_pinOut.set_level( _state );
}
void pigButton::trigger( pigpio::bcm_t, uint32_t )
{
//std::cout << "pigButton::trigger: " << (uint32_t) bcm << " : " << level << std::endl;
change_state( !state() );
}

54
pigbutton.h Normal file
View File

@@ -0,0 +1,54 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGBUTTON_H
#define PIGBUTTON_H
#include <pignodein.h>
class LIBPIGPIO_EXPORT pigButton : public pigNodeIn
{
public:
pigButton();
pigButton( pigpio::bcm_t bcmNo );
virtual ~pigButton();
void init( pigpio::bcm_t bcmNo );
void change_state( bool newState ) override;
protected:
virtual void trigger( pigpio::bcm_t bcm, uint32_t level ) override;
};
#endif // PIGBUTTON_H

65
pigbuzzer.cpp Normal file
View File

@@ -0,0 +1,65 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <chrono>
#include <thread>
#include <pigbuzzer.h>
#include <pignodeout.h>
#include <pigstate.h>
pigBuzzer::pigBuzzer( bcm_t bcmNo )
: pigNodeOut( bcmNo , pull_off )
{
}
pigBuzzer::~pigBuzzer()
{
}
void pigBuzzer::buzz( int millisOn, int millisOff )
{
/*
std::thread thrd(
[=]()
{
_pinOut.set_level( high );
std::this_thread::sleep_for( std::chrono::milliseconds( millisOn ) );
_pinOut.set_level( low );
if( millisOff )
std::this_thread::sleep_for( std::chrono::milliseconds( millisOff ) );
} );
thrd.detach();
*/
_pinOut.set_level( high );
std::this_thread::sleep_for( std::chrono::milliseconds( millisOn ) );
_pinOut.set_level( low );
if( millisOff )
std::this_thread::sleep_for( std::chrono::milliseconds( millisOff ) );
}

51
pigbuzzer.h Normal file
View File

@@ -0,0 +1,51 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGBUZZER_H
#define PIGBUZZER_H
#include <pignodeout.h>
#include <pigstate.h>
/**
* @brief The pigBeeper class
* ein __passiver__ Beeper, muss per PWM angesteuert
* werden.
*/
class LIBPIGPIO_EXPORT pigBuzzer : public pigNodeOut
{
public:
explicit pigBuzzer( pigpio::bcm_t bcmNo );
virtual ~pigBuzzer();
void buzz( int millisOn, int millisOff = 0 );
};
#endif // PIGBUZZER_H

22
pigcall.cpp Normal file
View File

@@ -0,0 +1,22 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/

37
pigcall.h Normal file
View File

@@ -0,0 +1,37 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGCALL_H
#define PIGCALL_H
#include <libpigpio.h>
class pigCall
{
public:
virtual void trigger( pigpio::bcm_t, uint32_t ) = 0;
};
#endif // PIGCALL_H

49
pigchrono.cpp Normal file
View File

@@ -0,0 +1,49 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <pigchrono.h>
//using namespace std::chrono;
pigChrono::pigChrono()
: _beg{ _clock::now() }
{
}
void pigChrono::start()
{
_beg = _clock::now();
}
double pigChrono::elapsed_millis() const
{
return (double) duration_cast<milliseconds>( _clock::now() - _beg ).count() ;
}
double pigChrono::elapsed_micros() const
{
return (double) duration_cast<microseconds>( _clock::now() - _beg ).count() ;
}

53
pigchrono.h Normal file
View File

@@ -0,0 +1,53 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGCHRONO_H
#define PIGCHRONO_H
#include <chrono>
#include <libpigpio.h>
using namespace std;
using namespace chrono;
class LIBPIGPIO_EXPORT pigChrono
{
public:
pigChrono();
virtual ~pigChrono() = default;
void start();
double elapsed_millis() const;
double elapsed_micros() const;
protected:
using _clock = high_resolution_clock;
time_point<_clock> _beg;
};
#endif // PIGCHRONO_H

55
pigi2c.cpp Normal file
View File

@@ -0,0 +1,55 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <pigi2c.h>
pigI2C::pigI2C()
{
}
pigI2C::pigI2C( i2c_addr_t aaddr, i2c_bus_t abus )
{
init( aaddr, abus );
}
pigI2C::~pigI2C()
{
pigpio::i2c_close( *this );
}
void pigI2C::init( i2c_addr_t aaddr , i2c_bus_t abus )
{
addr = aaddr;
bus = abus;
handle = pigpio::i2c_open( *this );
}
int pigI2C::i2c_write_device( char* buf, unsigned count )
{
return pigpio::i2c_write_device( *this, buf, count );
}

51
pigi2c.h Normal file
View File

@@ -0,0 +1,51 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGI2C_H
#define PIGI2C_H
#include <libpigpio.h>
#include <pigi2c.h>
using namespace pigpio;
struct LIBPIGPIO_EXPORT pigI2C
{
i2c_addr_t addr = 0;
i2c_bus_t bus = 1;
uint32_t handle = 0;
pigI2C();
explicit pigI2C( i2c_addr_t, i2c_bus_t = 1 );
virtual ~pigI2C();
void init( i2c_addr_t, i2c_bus_t = 1 );
int i2c_write_device( char* buf, unsigned count );
//void dump();
};
#endif // PIGI2C_H

12
pigi2cnode.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "pigi2cnode.h"
pigI2CNode::pigI2CNode( i2c_addr_t aaddr, i2c_bus_t abus )
{
init( aaddr, abus );
}
void pigI2CNode::init( i2c_addr_t aaddr, i2c_bus_t abus )
{
_i2c.init( aaddr, abus );
}

53
pigi2cnode.h Normal file
View File

@@ -0,0 +1,53 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGI2CNODE_H
#define PIGI2CNODE_H
#include <libpigpio.h>
#include <pignode.h>
#include <pigi2c.h>
class LIBPIGPIO_EXPORT pigI2CNode : public pigNode
{
public:
pigI2CNode() = default;
pigI2CNode( i2c_addr_t aaddr, i2c_bus_t abus );
virtual ~pigI2CNode() = default;
void init( i2c_addr_t aaddr, i2c_bus_t abus );
protected:
pigI2C _i2c;
};
#endif // PIGI2CNODE_H

182
piglcd.cpp Normal file
View File

@@ -0,0 +1,182 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <piglcd.h>
pigLCD::pigLCD( i2c_addr_t addr, i2c_bus_t bus )
{
init( addr, bus );
}
pigLCD::~pigLCD()
{
reset();
}
void pigLCD::init( i2c_addr_t addr, i2c_bus_t bus, int width, bool bl, uint8_t RS, uint8_t , uint8_t E, uint8_t BL, uint8_t B4 )
{
_i2c.init( addr, bus );
_width = width;
_backlight = bl;
_RS = (1<<RS);
_E = (1<<E);
_BL = (1<<BL);
_B4 = B4;
put_inst( 0x33 ); // Initialise 1
put_inst( 0x32 ); // Initialise 2
put_inst( 0x06 ); // Cursor increment
put_inst( 0x0C ); // Display on,move_to off, blink off
put_inst( 0x28 ); // 4-bits, 1 line, 5x8 font
put_inst( 0x01 ); // Clear display
//?? move_to( 0,0 )
put_inst( _LCD_ROW[0]+0 );
}
/**
* @brief pigLCD::close
* Close the LCD (clearing the screen) and release used resources.
*/
void pigLCD::reset()
{
put_inst( 0x01 ); // Clear display
set_backlight( false );
}
/**
* @brief pigLCD::set_backlight
* @param bl
* toogle backlight on or off.
*/
void pigLCD::set_backlight( bool bl )
{
_backlight = bl;
// hack
move_to( 0, 0 );
}
/**
* @brief pigLCD::move_to
* @param row
* @param col
*
* Position cursor at row and column (0 based).
*/
void pigLCD::move_to( int row, int col )
{
put_inst( _LCD_ROW[row]+col );
}
/**
* @brief pigLCD::write
* @param c
* Write a character at the current cursor postion and
* increment the cursor.
*/
void pigLCD::write( const char c )
{
put_data( (uint8_t) c );
}
void pigLCD::write( const std::string text )
{
for( const char c : text )
write( c );
}
void pigLCD::write( int row, int col, const std::string text )
{
move_to( row, col );
write( text );
}
void pigLCD::put_byte( uint8_t MSb, uint8_t LSb )
{
if( _backlight )
{
MSb |= _BL;
LSb |= _BL;
}
char buf[4];
buf[0] = (char) MSb | _E;
buf[1] = (char) MSb & ~_E;
buf[2] = (char) LSb | _E;
buf[3] = LSb & ~_E;
_i2c.i2c_write_device( buf, 4 );
// self.pi.i2c_write_device(self._h,
// [MSb | self.E, MSb & ~self.E, LSb | self.E, LSb & ~self.E]) */
}
void pigLCD::put_inst( uint8_t bits )
{
uint8_t MSN = (bits>>4) & 0x0F;
uint8_t LSN = bits & 0x0F;
uint8_t MSb = MSN << _B4;
uint8_t LSb = LSN << _B4;
put_byte( MSb, LSb );
}
void pigLCD::put_data( uint8_t bits )
{
uint8_t MSN = (bits>>4) & 0x0F;
uint8_t LSN = bits & 0x0F;
uint8_t MSb = (MSN << _B4) | _RS;
uint8_t LSb = (LSN << _B4) | _RS;
put_byte( MSb, LSb );
}

165
piglcd.h Normal file
View File

@@ -0,0 +1,165 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGLCD_H
#define PIGLCD_H
//#include <unistd.h>
//#include <inttypes.h>
#include <pigi2cnode.h>
/*
"""
This class provides simple functions to display text on an I2C LCD
based on the PCF8574T I2C 8-bit port expander.
PCF8574T P7 P6 P5 P4 P3 P2 P1 P0
HD44780 B7 B6 B5 B4 BL E RW RS
This code defaults to working with an adapter with the above
configuration.
If yours is different you will have to specify the mapping
when you instantiate the LCD.
"""
"""
Commands
LCD_CLEARDISPLAY = 0x01
LCD_RETURNHOME = 0x02
LCD_ENTRYMODESET = 0x04
LCD_DISPLAYCONTROL = 0x08
LCD_CURSORSHIFT = 0x10
LCD_FUNCTIONSET = 0x20
LCD_SETCGRAMADDR = 0x40
LCD_SETDDRAMADDR = 0x80
Flags for display entry mode
LCD_ENTRYRIGHT = 0x00
LCD_ENTRYLEFT = 0x02
LCD_ENTRYSHIFTINCREMENT = 0x01
LCD_ENTRYSHIFTDECREMENT = 0x00
Flags for display on/off control
LCD_DISPLAYON = 0x04
LCD_DISPLAYOFF = 0x00
LCD_CURSORON = 0x02
LCD_CURSOROFF = 0x00
LCD_BLINKON = 0x01
LCD_BLINKOFF = 0x00
Flags for display/cursor shift
LCD_DISPLAYMOVE = 0x08
LCD_CURSORMOVE = 0x00
LCD_MOVERIGHT = 0x04
LCD_MOVELEFT = 0x00
Flags for function set
LCD_8BITMODE = 0x10
LCD_4BITMODE = 0x00
LCD_2LINE = 0x08
LCD_1LINE = 0x00
LCD_5x10DOTS = 0x04
LCD_5x8DOTS = 0x00
Flags for backlight control
LCD_BACKLIGHT = 0x08
LCD_NOBACKLIGHT = 0x00
"""
*/
/**
* @brief The pigLCD class für //HD44780
* Back-Port von python, siehe: https://abyz.me.uk/rpi/pigpio/code/i2c_lcd_py.zip
*
*/
class pigLCD : public pigI2CNode
{
//HD44780
public:
pigLCD() = default;
pigLCD( i2c_addr_t addr, i2c_bus_t bus = 1 );
virtual ~pigLCD();
void init( i2c_addr_t addr, i2c_bus_t bus=1, int width=16, bool bl=true,
uint8_t RS=0, uint8_t RW=1, uint8_t E=2, uint8_t BL=3, uint8_t B4=4 );
void set_backlight( bool bl );
void move_to( int row, int col );
void write( const char c );
void write( const std::string text );
void write( int row, int col, const std::string text );
// inwieweit notwendig?
void reset();
protected:
void put_byte( uint8_t MSb, uint8_t LSb );
void put_inst( uint8_t bits );
void put_data( uint8_t bits );
uint8_t _LCD_ROW[4] = { 0x80, 0xC0, 0x94, 0xD4 };
bool _backlight = false;
int _width = 16;
//?? Type?
uint8_t _RS;
uint8_t _E;
uint8_t _BL;
uint8_t _B4;
/*
// GPIO chip i2c address
uint8_t i2c=0x27;
// Control line PINs
uint8_t en=2;
uint8_t rw=1;
uint8_t rs=0;
// Data line PINs
uint8_t d4=4;
uint8_t d5=5;
uint8_t d6=6;
uint8_t d7=7;
// Backlight PIN
uint8_t bl=3;
// LCD display size (1x16, 2x16, 4x20)
uint8_t rows=2;
uint8_t cols=16;
*/
};
#endif // PIGLCD_H

59
pigled.cpp Normal file
View File

@@ -0,0 +1,59 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <chrono>
#include <thread>
#include <pigled.h>
#include <pignodeout.h>
#include <pigstate.h>
pigLED::pigLED( bcm_t bcmNo )
: pigNodeOut( bcmNo , pull_off )
{
}
pigLED::~pigLED()
{
}
void pigLED::blink( int millisOn, int millisOff )
{
if( !millisOff )
millisOff = millisOn;
std::thread thrd(
[=]()
{
_pinOut.set_level( high );
std::this_thread::sleep_for( std::chrono::milliseconds( millisOn ) );
_pinOut.set_level( low );
//std::this_thread::sleep_for( std::chrono::milliseconds( millisOff ) );
} );
thrd.detach();
}

50
pigled.h Normal file
View File

@@ -0,0 +1,50 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGLED_H
#define PIGLED_H
#include <pignodeout.h>
#include <pigstate.h>
/**
* @brief The pigBeeper class
* ein __passiver__ Beeper, muss per PWM angesteuert
* werden.
*/
class LIBPIGPIO_EXPORT pigLED : public pigNodeOut
{
public:
explicit pigLED( pigpio::bcm_t bcmNo );
virtual ~pigLED();
void blink( int millisOn, int millisOff = 0 );
};
#endif // PIGLED_H

41
pignode.cpp Normal file
View File

@@ -0,0 +1,41 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <pignode.h>
/**
* @brief Maa im Footer pigNode::pigNode
*/
pigNode::pigNode()
{
}
pigNode::~pigNode()
{
}

49
pignode.h Normal file
View File

@@ -0,0 +1,49 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGNODE_H
#define PIGNODE_H
#include <pigcall.h>
#include <libpigpio.h>
/**
* @brief im HEADER The pigNode class
*/
class pigNode
{
public:
pigNode();
virtual ~pigNode();
};
#endif // PIGNODE_H

25
pignodein.cpp Normal file
View File

@@ -0,0 +1,25 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <pignodein.h>

50
pignodein.h Normal file
View File

@@ -0,0 +1,50 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGNODEIN_H
#define PIGNODEIN_H
#include <pignode.h>
#include <pigcall.h>
#include <pigstate.h>
#include <pigpin.h>
/**
* @brief im HEADER The pigNode class
*/
class LIBPIGPIO_EXPORT pigNodeIn : public pigNode, public pigCall, public pigState
{
public:
pigNodeIn() = default;
virtual ~pigNodeIn() = default;
protected:
pigPinIn _pinIn;
};
#endif // PIGNODEIN_H

48
pignodeout.cpp Normal file
View File

@@ -0,0 +1,48 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <iostream>
#include <pignodeout.h>
pigNodeOut::pigNodeOut( bcm_t bcmNo, pigpio::pud_t pud )
: _pinOut( bcmNo, pud )
{
}
pigNodeOut::~pigNodeOut()
{
}
void pigNodeOut::change_state( bool newState )
{
if( newState == state() )
return;
set_state( newState );
//sigState( _state );
_pinOut.set_level( _state );
}

57
pignodeout.h Normal file
View File

@@ -0,0 +1,57 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGNODEOUT_H
#define PIGNODEOUT_H
#include <pignode.h>
#include <pigstate.h>
#include <pigpin.h>
/**
* @brief Eine Signal Senke aka receiver, drain,
* _empfängt_ status änderungen
* ein _aktiver_ Buzzer, nur an/aus, keine PWM, oder eben eine LED
* werden.
*/
class LIBPIGPIO_EXPORT pigNodeOut : public pigNode, public pigState
{
public:
explicit pigNodeOut( pigpio::bcm_t bcmNo, pigpio::pud_t pud = pigpio::pull_off );
virtual ~pigNodeOut();
void change_state( bool newState ) override;
protected:
pigPinOut _pinOut;
};
#endif // PIGNODEOUT_H

182
pigpin.cpp Normal file
View File

@@ -0,0 +1,182 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#include <iostream>
#include <pigpin.h>
#include <libpigcore.h>
//using namespace pigpio;
pigPin::pigPin( bcm_t bcmNo, io_t modeNo, pud_t pudType )
{
init( bcmNo, modeNo, pudType );
}
pigPin::~pigPin()
{
}
void pigPin::init( bcm_t bcmNo, io_t modeNo, pud_t pudType )
{
bcm = bcmNo;
set_io_mode( modeNo );
set_pud_mode( pudType );
}
int pigPin::get_level()
{
return pigpio::get_level( bcm );
}
void pigPin::set_level( level_t level )
{
pigpio::set_level( bcm, level );
}
int pigPin::trigger_level( unsigned level, unsigned pulseLen )
{
return pigpio::trigger_level( bcm, pulseLen, level );
}
int pigPin::wait_for_edge( pigpio::edge_t edge, double timeout )
{
return pigpio::wait_for_edge( bcm, edge, timeout );
}
// pin config
int pigPin::set_io_mode( io_t modType )
{
mode = modType;
return pigpio::set_io_mode( bcm, mode );
}
int pigPin::get_io_mode()
{
return pigpio::get_io_mode( bcm );
}
int pigPin::set_pud_mode( pud_t pudType )
{
pud = pudType;
return pigpio::set_pud_mode( bcm, pud );
}
int pigPin::set_glitch_filter( uint32_t glitch )
{
return pigpio::set_glitch_filter( bcm, glitch );
}
int pigPin::set_noise_filter( uint32_t steady, uint32_t active )
{
return pigpio::set_noise_filter( bcm, steady, active );
}
// reality interface
int pigPin::set_callback( pigCall* fn, edge_t edge )
{
return pigpio::set_callback( bcm, fn, edge);
}
int pigPin::cancel_callback( int cbId )
{
return pigpio::cancel_callback( cbId );
}
void pigPin::dump()
{
std::cout << "\nPin: " << (uint32_t) bcm << " " << std::endl;
std::cout << "Mode: " << (uint32_t) mode << " " << std::endl;
std::cout << "Pud: " << (uint32_t) pud << " " << std::endl;
}
/// ---
pigPinIn::pigPinIn()
{
mode = pigpio::input;
}
pigPinIn::pigPinIn( pigpio::bcm_t bcmNo, pigpio::pud_t pudType )
: pigPin{ bcmNo, pigpio::input, pudType }
{
}
pigPinIn::~pigPinIn()
{
if( cbId > -1 )
pigpio::cancel_callback( cbId );
}
void pigPinIn::init( bcm_t bcmNo, pud_t pudType )
{
pigPin::init( bcmNo, pigpio::input, pudType );
}
/// ---
pigPinOut::pigPinOut()
{
mode = pigpio::output;
}
pigPinOut::pigPinOut( pigpio::bcm_t bcmNo, pigpio::pud_t pudType )
: pigPin{ bcmNo, pigpio::output, pudType }
{
}
pigPinOut::~pigPinOut()
{
}
void pigPinOut::init( bcm_t bcmNo, pud_t pudType )
{
pigPin::init( bcmNo, pigpio::output, pudType );
}

92
pigpin.h Normal file
View File

@@ -0,0 +1,92 @@
/*****************************************************************************
source::worx libPiGPio
Copyright © 2022 c.holzheuer
chris@sourceworx.org
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.
Uses:
pigpiod_if2 by joan2937, pigpio @ abyz.me.uk
https://abyz.me.uk/rpi/pigpio
sigslot by 2017 Pierre-Antoine Lacaze
https://github.com/palacaze/sigslot
***************************************************************************/
#ifndef PIGPIN_H
#define PIGPIN_H
#include <libpigpio.h>
using namespace pigpio;
//class pigCall;
struct LIBPIGPIO_EXPORT pigPin
{
bcm_t bcm = bcm_t::bcm_off;
io_t mode = io_t::io_off;
pud_t pud = pud_t::pull_off;
int cbId = -1;
pigPin() = default;
explicit pigPin( bcm_t bcmNo, io_t modType, pud_t pudType = pull_off );
virtual ~pigPin();
// delete copy/assign const?
void init( bcm_t bcmNo, io_t modType, pud_t pudType = pull_off );
virtual void dump();
// pin operations
int get_level();
void set_level( level_t level );
int trigger_level( level_t level, uint32_t pulseLen );
int wait_for_edge( edge_t edge, double timeout = TimeoutDef );
// pin config
int set_io_mode( io_t modType );
int get_io_mode();
int set_pud_mode( pud_t pudType );
int set_glitch_filter( uint32_t glitch = GlitchDef );
int set_noise_filter( uint32_t steady, uint32_t active );
// reality interface
int set_callback( pigCall* fn, edge_t = either );
int cancel_callback( int cbId );
};
struct LIBPIGPIO_EXPORT pigPinIn : public pigPin
{
pigPinIn();
pigPinIn( bcm_t bcmNo, pud_t pudType = pull_off );
virtual ~pigPinIn();
void init( bcm_t bcmNo, pud_t pudType = pull_off );
};
struct LIBPIGPIO_EXPORT pigPinOut : public pigPin
{
pigPinOut();
pigPinOut( pigpio::bcm_t bcmNo, pud_t pudType = pull_off );
virtual ~pigPinOut();
void init( bcm_t bcmNo, pud_t pudType = pull_off );
};
#endif // PIGPIN_H

23
pigpio-master/.gitignore vendored Normal file
View File

@@ -0,0 +1,23 @@
*.o
*.so
*.so.*
*.pyc
pig2vcd
pigpiod
pigs
x_pigpio
x_pigpiod_if
x_pigpiod_if2
__pycache__
build
dist
*.egg-info
tmp/
# DOC files
DOC/dbase/pigpio.sqlite.*
DOC/tmp
DOC/MAN/*
!DOC/MAN/README*
DOC/HTML/*.html

View File

@@ -0,0 +1,127 @@
cmake_minimum_required(VERSION 3.0)
project(pigpio LANGUAGES C VERSION 0.71)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
find_package(Threads REQUIRED)
find_package(RT REQUIRED)
option(BUILD_SHARED_LIBS "Create shared libraries" ON)
add_compile_options(-Wall)
# libpigpio.(so|a)
add_library(pigpio pigpio.c command.c custom.cext)
# libpigpiod_if.(so|a)
add_library(pigpiod_if pigpiod_if.c command.c)
# libpigpiod_if2.(so|a)
add_library(pigpiod_if2 pigpiod_if2.c command.c)
# x_pigpio
add_executable(x_pigpio x_pigpio.c)
target_link_libraries(x_pigpio pigpio RT::RT Threads::Threads)
# x_pigpiod_if
add_executable(x_pigpiod_if x_pigpiod_if.c)
target_link_libraries(x_pigpiod_if pigpiod_if RT::RT Threads::Threads)
# x_pigpiod_if2
add_executable(x_pigpiod_if2 x_pigpiod_if2.c)
target_link_libraries(x_pigpiod_if2 pigpiod_if2 RT::RT Threads::Threads)
# pigpiod
add_executable(pigpiod pigpiod.c)
target_link_libraries(pigpiod pigpio RT::RT Threads::Threads)
# pigs
add_executable(pigs pigs.c command.c)
target_link_libraries(pigs Threads::Threads)
# pig2vcd
add_executable(pig2vcd pig2vcd.c command.c)
target_link_libraries(pig2vcd Threads::Threads)
# Configure and install project
include (GenerateExportHeader)
include (CMakePackageConfigHelpers)
generate_export_header(${PROJECT_NAME})
install(TARGETS pigpio pigpiod_if pigpiod_if2 pig2vcd pigpiod pigs
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
VERSION ${${PROJECT_NAME}_VERSION}
COMPATIBILITY AnyNewerVersion
)
export(EXPORT ${PROJECT_NAME}Targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake"
NAMESPACE pigpio::
)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME})
install(EXPORT ${PROJECT_NAME}Targets
FILE
${PROJECT_NAME}Targets.cmake
NAMESPACE
pigpio::
DESTINATION
${ConfigPackageLocation}
)
install(
FILES
${CMAKE_CURRENT_LIST_DIR}/cmake/${PROJECT_NAME}Config.cmake
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION
${ConfigPackageLocation}
)
install(FILES pigpio.h pigpiod_if.h pigpiod_if2.h
DESTINATION include
PERMISSIONS OWNER_READ OWNER_WRITE
GROUP_READ
WORLD_READ
)
file(GLOB man_1_SRC "*.1")
install(FILES ${man_1_SRC}
DESTINATION man/man1
PERMISSIONS OWNER_READ OWNER_WRITE
GROUP_READ
WORLD_READ
)
file(GLOB man_3_SRC "*.3")
install(FILES ${man_3_SRC}
DESTINATION man/man3
PERMISSIONS OWNER_READ OWNER_WRITE
GROUP_READ
WORLD_READ
)
# Install python modules.
find_package(Python COMPONENTS Interpreter QUIET)
if(Python_FOUND)
configure_file(${CMAKE_CURRENT_LIST_DIR}/cmake/setup.py.in
${CMAKE_CURRENT_BINARY_DIR}/setup.py
)
install(CODE "execute_process(COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/setup.py install)")
endif()
# package project
include (CPack)

View File

@@ -0,0 +1,58 @@
## Submitting a New Issue
If you are reporting a **bug** or defect, please provide the steps to reproduce the problem you are describing.
Ideally, provide a simple script that will reproduce the issue. Also provide a description of the hardware and
software types and versions used in your application/test environment.
Requests for a feature or **enhancement** to the library software will be treated at a lower priority due to the lack
of resources (contributors with skillset, knowledge of the library or time). Unless your request has wide support
from the community it will be treated at a low priority. If the repo's maintainer judges your request to be of value
then it will be labeled `enhancement`. If additional resources are required, it will be tagged with `help wanted`.
If you simply have a **question**, consult the SUPPORT.md document.
## Creating a Pull Request
Contributions are welcome. To save time it is best to have an open issue relating to what it is you want to contribute
and to discuss the prospects of getting your contribution accepted.
Your changes *must* pass the set of test files `x_*`. Please indicate that you have run the test scripts successfuly or attach
a screen shot of the output from the test scripts.
In addition, you *should* provide updated or additional scripts that at least test the 'happy' paths of your code changes. For
larger changes the additional test cases will be considered mandatory.
Beginning 2020, this repo will follow a dual branch model: `master` is the stable branch that people use in production. A second branch, `develop`, is the first branch to receive merges from bug fixes and new features. Only after we consider `develop` stable we merge it into the `master` branch and release the changes with a tagged version.
Adhering to the following process is the best way to get your work included in the project:
- Fork the project, clone your fork, and configure the remotes:
```
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/pigio.git
# Navigate to the newly cloned directory
cd pigpio
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/joan2937/pigpio.git
```
- If you cloned a while ago, get the latest changes from upstream:
```
git checkout develop
git pull upstream develop
```
- Create a new topic branch (off the develop branch) to contain your feature, change, or fix:
```
git checkout -b <topic-branch-name>
```
- Commit your changes.
- Locally merge (or rebase) the upstream dev branch into your topic branch:
```
git pull [--rebase] upstream develop
```
- Push your topic branch up to your fork:
```
git push origin <topic-branch-name>
```
- Open a Pull Request with a clear title and description. See [creating a pull request from a fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork).
Make sure the base branch drop down menu is selecting 'develop'.

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Some files were not shown because too many files have changed in this diff Show More