64 Commits

Author SHA1 Message Date
Maxim
83959e3da8 доработка с двумя режимами 2026-06-09 15:45:31 +03:00
Maxim
79c711a486 wip 2026-06-09 13:44:52 +03:00
Maxim
bf23cf5ca4 версия без принтов 2026-06-09 13:37:59 +03:00
Maxim
c863f5bf20 доработка в кабинете 2026-05-06 12:52:14 +03:00
Maxim
eb364c8831 После отладки 2026-05-04 09:33:00 +03:00
Maxim
e1628a6c0a WIP. Для отладки 2026-04-29 13:57:54 +03:00
sasha80
9d8910af0a Доработка. Функция для чтения параллельного порта. Пример в котором данные с параллельной шины направляются в stdout 2026-04-20 08:20:42 +03:00
sasha80
ade3b26942 Добавлен пример для работы прерывания по gpio 2026-04-15 11:34:49 +03: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
Connor Gibson
b86be0969d Remove extra indents before if followed by if else
This was driving clangd crazy - replaced with indents between the if and conditional parentheses in most places.
2025-06-05 22:16:43 -07:00
phylax2020
b55101e013 isr_debounce.c 2025-01-29 11:50:28 +01:00
phylax2020
3e1f99e24d new example isr_debounce.c 2025-01-28 22:30:54 +01:00
mstroh76
d8487da522 #282 compiler warnings 2024-09-08 19:11:49 +02:00
Jakub Wlodek
8fc6b40656 Fix issue with speed example - does not compile on master branch 2024-09-02 15:16:06 -04:00
mstroh76
d3a23725b8 #210 2024-04-27 18:19:46 +02:00
mstroh76
06d9302d12 new ISR example/test program 2024-03-24 11:08:12 +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
Bertrand Roussel
33fbcd7e50 Make external CC and CFLAGS declaration possible 2020-01-26 11:13:14 -08:00
Mark Liffiton
093e0a17a4 Merge branch 'master' of git://git.drogon.net/wiringPi (v2.46) 2018-07-02 09:51:45 -05:00
Gordon Henderson
8d188fa0e0 update for the v3+ 2018-03-14 07:17:04 +00:00
Phil Howard
c947643601 Merge branch 'master' of git://git.drogon.net/wiringPi 2017-03-08 16:13:57 +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
Phil Howard
5066e09747 Merge branch 'master' of git://git.drogon.net/wiringPi 2017-02-03 16:02:42 +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
Phil Howard
9a8f8bee5d Updated from git.drogon.net 2016-02-29 11:46:13 +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
Phil Howard
a402cac920 Removed redundant files 2016-02-27 16:25:17 +00:00
Phil Howard
26c7fe3332 Updated from git.drogon.net 2016-02-27 16:03:10 +00:00
Gordon Henderson
2dbecfca0a Minor change to the scroll phat test program, and bumped the version. 2016-01-28 21:36:30 +00:00
Gordon Henderson
143b383b8d Added support for the Pimoroni scrollPhat
Added support for the ADS1115 16-bit ADC
Updated the gpio readall command to correctly with with the Compute Module
and fixed a resulting bug in wiringPi...
2016-01-28 19:20:31 +00:00
Gordon Henderson
bb6f08487c Updated wiringPi for the new Pi Zero.
Also affects the Pi v2 which also uses the new Revision
encoding scheme (It was slightly bodged before) This ought
to be relatively future proof, but who knows.

Fixed a minor thing in the examples Makefile
(not that anyone bothers to use it, judging by the emails I get )-:
2015-11-29 21:08:04 +00:00
Gordon Henderson
d79506694d Fixing a few issues - makefile goofs.
Also adding in the stuff for /dev/gpiomem with warnings
and information in the gpio manual page (who reads that
though!)
2015-09-30 16:11:42 +01:00
Gordon Henderson
f6c40cb2a6 Fixed the requirement for -lm
Updated the gpio program to be device tree aware.
2015-09-24 22:35:31 +01:00
Ian Jackson
a19bfb5798 examples/blink.sh: Add missing +x bit with chmod
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-12 20:38:19 +01:00
Ian Jackson
da03f9ed2f Build system: Enable V=1 to disable @'s
This patch is autogenerated, with:
  git-ls-files | grep Makefile | xargs perl -i~ -pe 's/^\t\@/\t\$Q /'

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:28 +00:00
Ian Jackson
cf6f38107e Build system: Add a formulaic setting of Q from V for debugging
We want to be able to disable the many @'s in the Makefiles so
that we can see what they are doing, when things go wrong.  It is
conventional to arrange for setting V=1 to have this effect.

Here we supply a formulaic stanza for either setting Q?=@ or
doing nothing.  (There is sadly no standard place which is
included in all the Makefiles so this is probably best).

In this patch we do not introduce any users of Q yet.  This is
because the next patch, which introduces all the users of Q, can
be generated entirely automatically.  (This is also convenient in
case something needs to be rebased across it.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-10 00:15:28 +00:00
Ian Jackson
95a292824f Build system: Add missing set -e
So that shell scripts do not blunder on after errors.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2015-09-09 23:30:16 +00:00
Gordon Henderson
0a9fdeb29d Minor changes to the PiGlow code - got the orange & yellow the right way
round at last..

Updated for the 0x0012 board revision on the new A+
2014-11-10 10:55:23 +00:00
Gordon Henderson
05e2f67e7f changed to pin mode to support softPwm.
bugfix in blink.sh - wring pin
improving the maxdetect routing - a little.
gpio pins
2014-05-20 11:43:07 +01:00
Gordon Henderson
477f856247 It helps if you add the files into GIT... 2013-07-28 11:12:09 +01:00
Gordon Henderson
f52dd8393c Minor changes to the files and removed a bit of debug. 2013-07-28 11:05:28 +01:00
Gordon Henderson
e25cbc0a62 Added in the PiGlow devLib extension driver.
Written some examples for the PiGlow board
bumped wiringPi version
2013-07-24 15:14:09 +01:00
Gordon Henderson
cbf6d642b5 Added in PiGlow devLib and a couple of examples for the PiGlow
bumped version.
2013-07-23 20:25:46 +01:00
Gordon Henderson
d24cf0630b Added in the SN3218 LED controller IC - as used in the PiGlow
so write a little test program with it too.
Updated gpio to use the sn3218 too.
2013-07-23 17:52:27 +01:00
Gordon Henderson
bfaf266ada Aded lcd-adafruit to test/drive the Adafruit RGB LCD plate
Added the Quick 2 Wire codes, etc.
Minor typo/bug fixes.
Added more modules into gpio -x
2013-05-20 21:13:44 +01:00
Gordon Henderson
da38443cb2 wiringPi Version 2 - First commit (of v2) 2013-05-13 19:43:26 +01:00
Gordon Henderson
3fbc564d00 Synced to git.drogon.net 2013-03-24 20:12:14 +00:00
Gordon Henderson
e8f6258004 Quite a few changes here.
Added in generic 'blink' programs in the examples in C, RTB and Shell.
Updated wiringPi with a little big-file on the millis() function and
added in a new micros() function too.
Updated the examples with standard LGPL headers.
Added a new isr-osc.c test program - just for ISR timing purposes.
2013-01-28 13:00:47 +00:00
Gordon Henderson
be04c1bd52 Changed the build system to drop I2C for now. Seems to cause too many issues
on non Raspbian systems (and even on some Raspbian systems it would appear ):

fixed a timing issue on softTone
fixed some issues in wiringPisetup introduced when optimising the mmap calls.
2013-01-19 10:31:14 +00:00