From 162a4dec8ef96db94f17afc9a51c9e661c46b70f Mon Sep 17 00:00:00 2001 From: Qubot <1445788683@qq.com> Date: Wed, 29 Nov 2023 17:23:49 +0800 Subject: [PATCH] add zero and berry --- README.rst | 17 ++++++++--------- .../IO-expand.py | 0 .../Light_Sensor.py | 0 .../dht11.py | 0 .../ds18b20.py | 0 .../joystick.py | 0 .../light.py | 0 .../oled_ssd1306.py | 2 +- .../rotary_encoder.py | 0 .../rtc.py | 0 .../sensor_control_led.py | 0 11 files changed, 9 insertions(+), 10 deletions(-) rename examples/{orangepi-sensors => bananapi-sensors}/IO-expand.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/Light_Sensor.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/dht11.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/ds18b20.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/joystick.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/light.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/oled_ssd1306.py (99%) rename examples/{orangepi-sensors => bananapi-sensors}/rotary_encoder.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/rtc.py (100%) rename examples/{orangepi-sensors => bananapi-sensors}/sensor_control_led.py (100%) diff --git a/README.rst b/README.rst index b037f55..4bfc908 100644 --- a/README.rst +++ b/README.rst @@ -1,18 +1,17 @@ Note ~~~~ -wiringOP for Python +wiringPi for Python =================== -wiringOP: An implementation of most of the Arduino Wiring functions for -the Orange Pi. +wiringPi: An implementation of most of the Arduino Wiring functions for +the Banana Pi. Supported boards =================== tested on: -``Orange Pi Zero2`` -``Orange Pi 3 LTS`` -``Orange Pi 4 LTS`` +``Banana Pi M4 Berry`` +``Banana Pi M4 Zero`` Manual Build ============ @@ -22,8 +21,8 @@ Get/setup repo .. code:: bash - git clone --recursive https://github.com/orangepi-xunlong/wiringOP-Python.git - cd wiringOP-Python + git clone --recursive https://github.com/BigQubot/wiringPi-Python.git + cd wiringPi-Python Don't forget the --recursive; it is required to also pull in the WiringPi C code from its own repository. @@ -31,7 +30,7 @@ Prerequisites ------------- To rebuild the bindings you **must** first have installed ``swig``, -``python3-dev``, and ``python3-setuptools``. wiringOP should also be installed system-wide for access +``python3-dev``, and ``python3-setuptools``. wiringPi should also be installed system-wide for access to the ``gpio`` tool. .. code:: bash diff --git a/examples/orangepi-sensors/IO-expand.py b/examples/bananapi-sensors/IO-expand.py similarity index 100% rename from examples/orangepi-sensors/IO-expand.py rename to examples/bananapi-sensors/IO-expand.py diff --git a/examples/orangepi-sensors/Light_Sensor.py b/examples/bananapi-sensors/Light_Sensor.py similarity index 100% rename from examples/orangepi-sensors/Light_Sensor.py rename to examples/bananapi-sensors/Light_Sensor.py diff --git a/examples/orangepi-sensors/dht11.py b/examples/bananapi-sensors/dht11.py similarity index 100% rename from examples/orangepi-sensors/dht11.py rename to examples/bananapi-sensors/dht11.py diff --git a/examples/orangepi-sensors/ds18b20.py b/examples/bananapi-sensors/ds18b20.py similarity index 100% rename from examples/orangepi-sensors/ds18b20.py rename to examples/bananapi-sensors/ds18b20.py diff --git a/examples/orangepi-sensors/joystick.py b/examples/bananapi-sensors/joystick.py similarity index 100% rename from examples/orangepi-sensors/joystick.py rename to examples/bananapi-sensors/joystick.py diff --git a/examples/orangepi-sensors/light.py b/examples/bananapi-sensors/light.py similarity index 100% rename from examples/orangepi-sensors/light.py rename to examples/bananapi-sensors/light.py diff --git a/examples/orangepi-sensors/oled_ssd1306.py b/examples/bananapi-sensors/oled_ssd1306.py similarity index 99% rename from examples/orangepi-sensors/oled_ssd1306.py rename to examples/bananapi-sensors/oled_ssd1306.py index d3437c0..c7269f5 100644 --- a/examples/orangepi-sensors/oled_ssd1306.py +++ b/examples/bananapi-sensors/oled_ssd1306.py @@ -294,7 +294,7 @@ def main(): while True: try: #get time - yi[0] = full_string("++++OrangePi++++") + yi[0] = full_string("++++BananaPi++++") #yi[1] = full_string(time.strftime("%m/%d %w")) yi[1] = full_string(time.strftime("%m/%d %a")) yi[2] = full_string(time.strftime("%H:%M")) diff --git a/examples/orangepi-sensors/rotary_encoder.py b/examples/bananapi-sensors/rotary_encoder.py similarity index 100% rename from examples/orangepi-sensors/rotary_encoder.py rename to examples/bananapi-sensors/rotary_encoder.py diff --git a/examples/orangepi-sensors/rtc.py b/examples/bananapi-sensors/rtc.py similarity index 100% rename from examples/orangepi-sensors/rtc.py rename to examples/bananapi-sensors/rtc.py diff --git a/examples/orangepi-sensors/sensor_control_led.py b/examples/bananapi-sensors/sensor_control_led.py similarity index 100% rename from examples/orangepi-sensors/sensor_control_led.py rename to examples/bananapi-sensors/sensor_control_led.py