72 Commits

Author SHA1 Message Date
sasha80
9d8910af0a Доработка. Функция для чтения параллельного порта. Пример в котором данные с параллельной шины направляются в stdout 2026-04-20 08:20:42 +03:00
sasha80
ade3b26942 Добавлен пример для работы прерывания по gpio 2026-04-15 11:34:49 +03:00
mstroh76
cd882f6cf3 #412 Update Version und date to 2026 2026-01-10 17:35:57 +01:00
Connor Gibson
55e189eda5 Switch to stdbool.h
- Add `#include <stdbool.h> to all files previously using the
   `TRUE`/`FALSE` macros
 - Replace all instances of `TRUE`/`FALSE` with `true`/`false`,
   respectively
 - Definitions of `TRUE`/`FALSE` macros retained in wiringPi.h for compatibility.
2025-06-07 13:14:49 -07:00
Manfred Wallner
70a455a2c8 Merge branch 'develop' into cleanup 2025-06-05 13:21:55 +02:00
Connor Gibson
044af6cb9a Fix indentation 2025-05-31 19:45:01 -07:00
Connor Gibson
fbd4353121 Remove deprecated digitalRead8() and digitalWrite8() functions from comments 2025-05-31 19:45:01 -07:00
mstroh76
18fc04d7f2 #322 check pin numbers after convert to BCM 2025-05-18 21:17:09 +02:00
mstroh76
d5f0ea06f4 #337 ISr user datat and unit test 2025-05-04 19:41:14 +02:00
mstroh76
b71a2b688e #346 irq status var name ajust 2025-05-02 19:50:44 +02:00
mstroh76
38274fe6e8 #346 GPIO Character Device Userspace API V2 - compatibility to old interface 2025-05-02 13:10:40 +02:00
phylax2020
2f35ff5ec8 Version v3.16: added wfi status for wiringPiISR and waitForInterrupt 2025-02-20 11:29:30 +01:00
phylax2020
7abeddde2d wiringPi.c ; waitForInterrupt releases fd and line itself, wiringPiISRStop not necessary to be called 2025-02-17 22:09:07 +01:00
Manfred Wallner
60f100b465 Merge branch 'GPIO_V2_IOCTL' into development 2025-02-13 21:39:19 +01:00
phylax2020
a261ceb485 Pi500/CM5 support 2025-02-11 20:01:41 +01:00
phylax2020
92be5caccd Version 3.14: WiringPi functions upgrade to GPIO_V2 IOCTL 2025-02-11 16:02:33 +01:00
phylax2020
0bf457519d Version 3.13 : debounce time added for wiringPiISR and waitForInterrupt library functions. Documentation update 2025-01-29 19:09:32 +01:00
mstroh76
7b03cd9f42 Pi500/CM5/CM5L support 2025-01-18 16:10:54 +01:00
mstroh76
b9a85a670e #302 Pi500/CM5/CM5L revision code 2025-01-18 16:33:06 +04:00
mstroh76
6992794f1d #267 new output commands PWM_MODE_BAL & PWM_MODE_MS 2024-08-23 16:30:08 +02:00
mstroh76
ffccd873a4 #261 2024-07-14 18:32:40 +02:00
mstroh76
b5a1448624 #256 PiFace test 2024-06-16 16:29:58 +02:00
mstroh76
4db79da55b #244 add API call getPinModeAlt 2024-05-30 16:52:04 +02:00
mstroh76
23b7251a2d #227 2024-05-03 14:36:09 +02:00
mstroh76
f3415b593c #225 2024-05-01 20:28:52 +02:00
mstroh76
e20bda7a12 #210 2024-04-28 17:40:19 +02:00
mstroh76
58fd2654a3 #219 report /dev/gpiochip support 2024-04-26 17:45:12 +02:00
mstroh76
ad6d821329 #219 boost speed and improve compatibility with sysfs 2024-04-20 19:48:33 +02:00
mstroh76
b0c5793086 #219 2024-04-16 18:50:37 +02:00
mstroh76
e7726a4f0a #221 2024-04-14 11:51:38 +02:00
mstroh76
c1a86f41f2 #204 2024-03-22 18:21:18 +01:00
mstroh76
6590de3ef4 #195 2024-03-09 19:29:42 +01:00
mstroh76
39663ba396 #194 2024-03-09 14:11:06 +01:00
mstroh76
417d54649d #25 2024-02-27 20:22:54 +01:00
mstroh76
107b9ee4c2 #17 PinDrive 2024-02-16 21:16:20 +01:00
mstroh76
bde772c4b0 #16 2024-01-27 16:41:46 +01:00
mstroh76
6d5108edf2 #15 2024-01-27 09:03:25 +01:00
Philip Howard
a83d64ea6c Prep for deb release as 2.70
This is a general tidyup to detach this fork better from Gordon, who was (and perhaps still is) completely inundated with WiringPi-related support questions.

This changeset includes a number of tweaks which should reduce support burden on Gordon. I believe they are essential if we plan to release a new debian package.

They should - hopefully - not reduce or make ambiguous the origins of this code while achieving the above.

* Remove Gordon's email address from all source files to avoid support queries finding their way to him
* Update wiringPi URLs to the GitHub repository to try and keep bugs/issues within the fork
* Bump version to 2.70 ready for a debian package release
* Update debian package maintainer info, add bugs & homepage URLs to this repository
2022-02-09 11:58:59 +00:00
Mark Liffiton
5de0d8f573 Add comment w/ source for board type codes. 2021-12-23 12:27:13 -06:00
PinkFreud
a8112d8677 Add support for the Zero 2 W (#128)
* Changes to support the Zero 2 W (model type 18|0x12)

* Increment version in version.h

* Increment version in debian-template/wiringPi/DEBIAN/control

* Increment version in VERSION as well - I keep missing places where this number is defined

* Increment VERSION_MINOR, missed in previous commits; add missing Pi Z2W model name to piModelNames

Co-authored-by: schwartz <pi@schwartz>
Co-authored-by: PumpkinPi <jack@mirkwood.net>
2021-12-23 12:22:09 -06:00
fanoush
1aed7f7c9d Add support for Pi 400 and CM4 2020-11-26 15:57:05 +01:00
Steve Baker
aca883a051 Add support for Raspberry Pi 4B
This change make the following commands correctly detect the 4B
however there may be an issue with reading GPIO inputs on the 4B
as they are always returning zero.

The aim of this change is to be the source-equivalent of the binary
package release 2.52[1] which was the last release before upstream
development ceased.

[1] http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
2019-12-14 01:09:13 +00:00
Steve Baker
03204c3807 Sync with changes from wiringpi_2.50.orig.tar.gz
Sourced from http://archive.ubuntu.com/ubuntu/pool/universe/w/wiringpi/wiringpi_2.50.orig.tar.gz
2019-12-14 13:42:07 +13:00
Gordon Henderson
8d188fa0e0 update for the v3+ 2018-03-14 07:17:04 +00:00
Gordon Henderson
e8da87fbac Added a fix to include -lcrypt for people who can't do it themselves.
Added gpio readall support for the Pi 0W.
2017-03-01 11:55:19 +00:00
Gordon Henderson
70fa99a127 Bumped the version to 2.40 - correctly this time, I hope.
Added fixed for a few minor things. pin driver for rht03/dht type
sensors. Network stuff is experimental - for now.
2017-02-27 19:51:32 +00:00
Gordon Henderson
e687f3f2c6 Pushing to 2.39 as I have have not done the last one rightly... 2017-01-24 12:13:39 +00:00
Gordon Henderson
b1dfc186ef A new version of wiringPi. Added in more stuff and fixed it up
for kernels 4.8 onwards.

Some very old stuff might break.

Additional fixes for the ISR code and some tweaks here and
there. I've removed the checks for some operations that might
fail when using the gpiomem interface - which is now the default
way of doing things - if your program segfaults, then you
may need to use sudo on it.
2016-12-12 14:19:55 +00:00
Gordon Henderson
b0a60c3302 Many changes - tidying up the extensions interfaces.
Updating the GPIO command - new command - allreadall
ScrollPhat code
max31855 code (tested with adafruit breakout board)
more tests
updated rht03 code

Raspberry Pi v3 support.
2016-02-29 06:57:38 +00:00
Gordon Henderson
31a8a2cdb8 gpio readall didn't work on the Zero. This fixed that little goof 2015-12-02 15:13:01 +00:00