From 3315e8ec750ee8535b3f4ab31c7007b5863b7e97 Mon Sep 17 00:00:00 2001 From: Martin Unzner Date: Fri, 20 Sep 2019 01:14:08 +0200 Subject: [PATCH 1/5] port soft tone example from WiringPi --- examples/softtone.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/softtone.py diff --git a/examples/softtone.py b/examples/softtone.py new file mode 100644 index 0000000..4a90ce7 --- /dev/null +++ b/examples/softtone.py @@ -0,0 +1,16 @@ +# Test of the softTone module in wiringPi +# Plays a scale out on pin 3 - connect pizeo disc to pin 3 & 0v +import wiringpi + +PIN = 3 + +SCALE = [262, 294, 330, 349, 392, 440, 494, 525] + +wiringpi.wiringPiSetup() +wiringpi.softToneCreate(PIN) + +while True: + for idx in range(8): + print(idx) + wiringpi.softToneWrite(PIN, SCALE[idx]) + wiringpi.delay(500) From 3db354710a9e64b959037944b4beee97e5198259 Mon Sep 17 00:00:00 2001 From: Mark Liffiton Date: Wed, 1 Jan 2020 11:20:01 -0600 Subject: [PATCH 2/5] Bump WiringPi version to 2.60 with RPi 4 support. --- WiringPi | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WiringPi b/WiringPi index 093e0a1..5bbb6e3 160000 --- a/WiringPi +++ b/WiringPi @@ -1 +1 @@ -Subproject commit 093e0a17a40e064260c1f3233b1ccdf7e4c66690 +Subproject commit 5bbb6e34b854a1a911e85145741681b875aec1a4 diff --git a/setup.py b/setup.py index c908da6..2d83e0e 100755 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ def run(self): setup( name = 'wiringpi', - version = '2.46.0', + version = '2.60.0', ext_modules = [ _wiringpi ], py_modules = ["wiringpi"], install_requires=[], From 93a6e40cd79e05e29dd1a203ee2b8d097fa07fd3 Mon Sep 17 00:00:00 2001 From: Mark Liffiton Date: Fri, 19 Feb 2021 23:57:21 -0600 Subject: [PATCH 3/5] Bring in latest WiringPi for more hardware compatibility, Arch compile fix. Bump to 2.60.1. --- WiringPi | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WiringPi b/WiringPi index 5bbb6e3..e9821ab 160000 --- a/WiringPi +++ b/WiringPi @@ -1 +1 @@ -Subproject commit 5bbb6e34b854a1a911e85145741681b875aec1a4 +Subproject commit e9821abdb4b4fe46a2ea9243471d339435fa7bde diff --git a/setup.py b/setup.py index 2d83e0e..4d2e3f1 100755 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ def run(self): setup( name = 'wiringpi', - version = '2.60.0', + version = '2.60.1', ext_modules = [ _wiringpi ], py_modules = ["wiringpi"], install_requires=[], From edc377261dc6f6ae1eebdb362c3c56fc44a352e0 Mon Sep 17 00:00:00 2001 From: Mark Liffiton Date: Mon, 2 Aug 2021 09:02:15 -0400 Subject: [PATCH 4/5] Add link to an alternative Python library --- README.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 788ead7..5ff46b2 100644 --- a/README.rst +++ b/README.rst @@ -8,13 +8,17 @@ For support, comments, questions, etc please join the WiringPi Discord channel: https://discord.gg/SM4WUVG WiringPi for Python -=================== +~~~~~~~~~~~~~~~~~~~ WiringPi: An implementation of most of the Arduino Wiring functions for the Raspberry Pi. WiringPi implements new functions for managing IO expanders. +**Alternative** + +* `GPIO Zero `_ is another Python library for controlling GPIO. It is installed by default in Raspberry Pi OS and is used in the `Raspberry Pi GPIO documentation `_. + Quick Install ============= From 6d3c9e704e60bac837aecec2c8db95b0cd0f57d0 Mon Sep 17 00:00:00 2001 From: Philip Howard Date: Tue, 31 Oct 2023 12:50:49 +0000 Subject: [PATCH 5/5] Update README.rst --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 5ff46b2..855e84a 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,5 @@ +:Warning: WiringPi was deprecated by its author in August 2019. As of 31st October 2023 nobody has shown an interest in properly maintaining it. Between this, and changes to GPIO in Rasberry Pi OS Bookworm and on the Raspberry Pi 5, this project is going nowhere. It has been archived to more clearly indicate this status. + Note ~~~~