You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the WiringPi Library, the highly performant GPIO access library for Raspberry Pi boards. This library is written in C and is designed to provide fast and efficient control of the GPIO pins by directly accessing the hardware registers using DMA.
3
3
4
-
This is an unofficial mirror/fork of wiringPi to support ports (Python/Ruby/etc). With the
5
-
[end of official development](http://wiringpi.com/wiringpi-deprecated/), this repository
6
-
has become a mirror of the last "official" source release, plus a fork facilitating updates
7
-
to support newer hardware (primarily for use by the ports) and fix bugs.
4
+
**Key Features:**
5
+
-**Support:** WiringPi supports all Raspberry Pi Boards including Pi 5 ( :construction: On the Pi 5, only the GCLK functionality is currently not supported due to missing documentation of the RP1 chip).
6
+
-**High Performance:** By directly accessing the hardware registers, WiringPi ensures minimal latency and maximum performance for your GPIO operations.
7
+
-**Wide Adoption:** WiringPi is widely used in numerous projects, making it a reliable choice for your Raspberry Pi GPIO needs.
8
8
9
-
* The final "official" source release can be found at the
* The default `master` branch contains code that has been written since that final source
12
-
release to provide support for newer hardware.
9
+
Whether you’re working on a simple LED blink project or a complex automation system, WiringPi provides the tools you need to get the job done efficiently.
13
10
14
-
Ports
15
-
-----
11
+
## How to use
12
+
13
+
To compile programs with wiringPi Library, you need to include `wiringPi.h` as well as link against `wiringPi`:
14
+
15
+
```c
16
+
#include<wiringPi.h>// Include WiringPi library!
17
+
18
+
intmain(void)
19
+
{
20
+
// uses BCM numbering of the GPIOs and directly accesses the GPIO registers.
Please use the [issue system](https://github.com/WiringPi/WiringPi/issues) of GitHub.
142
+
143
+
If you're not sure whether to create an issue or not, please engage in [discussions](https://github.com/WiringPi/WiringPi/discussions)!
144
+
145
+
Please do not email Gordon or @Gadgetoid.
146
+
147
+
Please don't email GC2 for reporting issues, you might [contact us](mailto:[email protected]) for anything that's not meant for the public.
148
+
149
+
## History
150
+
151
+
This repository is the continuation of 'Gordon's wiringPi 2.5' which has been [deprecated](https://web.archive.org/web/20220405225008/http://wiringpi.com/wiringpi-deprecated/), a while ago.
152
+
153
+
* The last "old wiringPi" source of Gordon's release can be found at the
* The default `master` branch contains code that has been written since version 2.5
156
+
to provide support for newer hardware as well as new features.
157
+
158
+
:information_source:️ Since 2024, [GC2](https://github.com/GrazerComputerClub) has taken over maintenance of the project, supporting new OS versions as well as current hardware generations. We are dedicated to keeping the arguably best-performing GPIO Library for Raspberry Pi running smoothly. We strive to do our best, but please note that this is a community effort, and we cannot provide any guarantees or take responsibility for implementing specific features you may need.
27
159
28
-
Please do not email Gordon if you have issues, he will not be able to help.
160
+
## Debug
29
161
30
-
Pull-requests may be accepted to add or fix support for newer hardware, but new features or
31
-
other changes may not be accepted.
162
+
WIRINGPI_DEBUG=1 ./my_wiringpi_program
32
163
33
-
For support, comments, questions, etc please join the WiringPi Discord channel: https://discord.gg/SM4WUVG
0 commit comments