Comments (1)
hello all. I created a lep.py and put it in the /usr/local/lib/python3.10/dist-packages/libre/
here is the code if this helps anyone:
-- coding: utf-8 --
Copyright (c) 2018 Richard Hull & Contributors
See LICENSE.md for details.
modified by B-Wigton 09-16-2022 to add libre Lepotato
"""
Alternative pin mappings for Libre Le Potato
(see https://docs.google.com/spreadsheets/d/1U3z0Gb8HUEfCIMkvqzmhMpJfzRqjPXq7mFLC-hvbKlE/edit?usp=sharing)
Usage:
.. code:: python
import libre.lep
from OPi import GPIO
GPIO.setmode(libre.lep.BOARD) or GPIO.setmode(libre.lep.BCM)
"""
Libre LePotato physical board pin to GPIO pin
BOARD = {
3: 5,
5: 4,
7: 98,
8: 91,
10: 92,
11: 8,
12: 6,
13: 9,
15: 10,
16: 93,
18: 94,
19: 87,
21: 88,
22: 79,
23: 90,
24: 89,
26: 80,
27: 75,
28: 76,
29: 96,
31: 97,
32: 95,
33: 85,
35: 86,
36: 81,
37: 84,
38: 82,
40: 83,
}
No reason for BCM mapping, keeping it for compatibility
BCM = BOARD
from opi.gpio.
Related Issues (20)
- NanoPi M4v2 + OPi.GPIO + Luma.OLED + SSD1351 Error HOT 1
- GPIO.PWM function takes exactly 2 arguments (4 given)
- Add support to OrangePI Zero 2 - H616 HOT 2
- Does it support orange pi 3lts? HOT 7
- usermod: group 'gpio' does not exist HOT 6
- Does not work with fissio.py HOT 1
- KeyError: 25 when using radxa zero
- Tests fail on python >=3.6 HOT 1
- Question: Rock 4? HOT 1
- orangepi zero2 trouble issue help HOT 5
- Erratic add_event_detect readings HOT 1
- Update in Pypi
- opi 5 and 5+ support HOT 1
- Adding the OPiGPIO inside Android Studio
- Add support for Orange Pi Zero 3 HOT 4
- PermissionError /sys/class/gpio/export NanoPi Neo Armbian 23 6.1.63 HOT 2
- `ModuleNotFoundError: No module named 'OPi'` even though installed [ OrangePi Zero 2W]
- Orange pi 5, OPi.GPIO.output() does change the value inside ".../gpio2/value" file but it doesn't change the physical pin condition
- OPi.GPIO and libgpiod instead /sysfs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opi.gpio.