Package: terindo.gpio
Repository EnhancementThe original repository for the OPi.GPIO library, available athttps://github.com/rm-hull/OPi.GPIO, has been enhanced to support additional boards: Orange Pi 3B and Orange Pi Zero 3.Key Modifications:Added Support for Orange Pi 3BAdded Support for Orange Pi Zero 3InstallationTo install the enhanced version of OPi.GPIO, use the following pip command:pip3installterindo.gpio==1.0.1UsageAfter installation, OPi.GPIO can be utilized in your Python code as shown below:importOPi.GPIOasGPIO# import orangepi.zero3importorangepi.pi3b# GPIO.setmode(orangepi.zero3.BOARD)GPIO.setmode(orangepi.pi3b.BOARD)OPi.GPIOA drop-in replacement library forRPi.GPIOfor the Orange Pi Zero and other SBCs. Only the basic GPIO functions are replicated,
using sysfs: this allows the GPIO pins to be accessed from user space.See thedocumentationfor install
instructions and detailed API usage.Referenceshttps://www.kernel.org/doc/Documentation/gpio/sysfs.txthttp://linux-sunxi.org/GPIOhttps://forum.armbian.com/index.php?/topic/1471-solved-difficulty-accessing-gpio-via-the-sunxi-gpio-export-interface/https://forum.armbian.com/index.php?/topic/3655-guide-orange-pi-zero-gpios/https://jsfiddle.net/tuav7f6q/2/https://www.mysensors.org/build/orangehttps://kaspars.net/blog/linux/orange-pi-zero-gpiohttps://developer.toradex.com/knowledge-base/pwm-linuxLicenseThe MIT LicenseCopyright (c) 2018 Richard HullPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.ContributingPull requests (code changes / documentation / typos / feature requests / setup)
are gladly accepted. If you are intending to introduce some large-scale
changes, please get in touch first to make sure we’re on the same page: try to
include a docstring for any new method or class, and keep method bodies small,
readable and PEP8-compliant. Add tests and strive to keep the code coverage
levels high.GitHubThe source code is available to clone at:https://github.com/rm-hull/OPi.GPIOContributorsSimon Rowe (@srowe)Steven P. Goldsmith (@sgjava)Adrian Cuzman (@adriancuzman)Mathieu Pasquet (@winterscar)@5kftStephen Sorriaux (@StephenSorriaux)Michael Still (@mikalstill)Pascal Roeleven (@pascallj)Igor Pitsyn (@ipitsyn)ChangeLogVersionDescriptionDate0.5.3Add pin mappings for Radxa ZeroAdded OrangePi Zero2 pin mappings2022/06/200.5.2Add full 40-pin header for Orange Pi 4(B)2021/10/220.5.1Updated orange pi 4B mappings2021/08/190.5.0Added Hardware PWM ControlAdd support for the NanoPi M4 familyAdd pin mapping for orange pi 4 & 4B modelsAdd rockpi/rockpi s packages addedFix OrangePi PC BCM Pin map2021/04/250.4.0Added various new pin mappings for Orange Pi variants2019/10/210.3.6Expose pullup resistor constants to API usersAdd pin mappings for OrangePi Prime2019/01/140.3.5Added OrangePi Lite & One pin mappings2018/11/100.3.4Added more OrangePi and NanoPi pin mappings2018/09/160.3.3Added waits for UDEV rules2018/09/150.3.2Added OrangePi PC pin mappings2018/03/040.3.1Added NanoPi DUO pin mappings2018/01/010.3.0Added alternate pin mappings2017/12/310.2.5sysfs: set output() value to 0 or 12017/07/150.2.4Add compatibility for pull up/down and bouncetime params2017/05/270.2.3Make worker threads daemonic (can’t exit otherwise)2017/05/260.2.2GPIO.setup()catches IOError and re-exports2017/03/280.2.1Minor bug fixesAdditional tests2017/03/140.2.0Added edge detection and eventing2017/03/140.1.0Initial version2017/03/11