Skip to content

Commit

Permalink
update lwringpi
Browse files Browse the repository at this point in the history
  • Loading branch information
cqusers committed Nov 24, 2021
1 parent a4ecd73 commit c9be4c0
Show file tree
Hide file tree
Showing 36 changed files with 59 additions and 48 deletions.
2 changes: 1 addition & 1 deletion docs/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ C code is not working?


* Check your wiring for problems.
* Check if the code is reporting errors.
* Check if the code is reporting errors, if so, refer to: :ref:`WiringPi`.
* Has the code been compiled before running.
* If all the above 3 conditions are OK, it may be that your wiringPi version (2.50) is not compatible with your Raspberry Pi 4B and above, refer to :ref:`WiringPi` to manually upgrade it to version 2.52.
2 changes: 1 addition & 1 deletion docs/source/lesson_1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ this change. The schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ step.)
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Joystick. The schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_16.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_17.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ For switch Hall sensor, take the following steps.
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_18.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The schematic diagram for the thermistor module:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_19.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_20.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ screen. The schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_21.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_22.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_23.rst
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ again that you’ve connected everything and haven’t crossed any wires.
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_24.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ output steady signals. The schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_25.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ meters)
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_26.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ sensor address. Save and exit.
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_27.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ left or right as long as you know the state of output 2.
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_28.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ more information, please refer to the datasheet of DHT11.
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_29.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_30.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ this step.)
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_31.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ step.)
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_32.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ step.)
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_33.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Set weekday (0 as Sunday)
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_34.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_35.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Save and exit.
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ tap or knock. The schematic diagram:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
2 changes: 1 addition & 1 deletion docs/source/lesson_9.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The schematic diagram of the module is as shown below:
.. note::

If it does not work after running, please refer to :ref:`C code is not working?`
If it does not work after running, or there is an error prompt: \"wiringPi.h: No such file or directory\", please refer to :ref:`C code is not working?`.

**Code**

Expand Down
37 changes: 24 additions & 13 deletions docs/source/libraries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,35 @@ library is installed successfully or not by the following instructions.
.. image:: media/image92.png

.. note::
If you are using Raspberry Pi 4B, but the GPIO version is **2.50**, it
will cause no response after the C language code is running, that is,
GPIO pins do not work. At this time, you need to manually update to
version **2.52**, the update steps are as follows :
* If your Raspberry Pi OS is version 10.31 and above, there will be an error message: wiringPi.h: No such file or directory.

* If you are using Raspberry Pi 4B, but the GPIO version is 2.50, it will cause no response after the C language code is running, that is, GPIO pins do not work.

.. code-block::
cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
At this time, you need to manually update to version 2.52, the update steps are as follows :

.. raw:: html

<run></run>

.. code-block::
cd /tmp
Check with:
wget https://project-downloads.drogon.net/wiringpi-latest.deb
.. code-block::
sudo dpkg -i wiringpi-latest.deb
Check with:

.. raw:: html

<run></run>

.. code-block::
gpio -v
gpio -v
and make sure it’s version 2.52.
and make sure it’s version 2.52.

.. raw:: html

Expand Down

0 comments on commit c9be4c0

Please sign in to comment.