GithubHelp home page GithubHelp logo

Comments (1)

Snakn1 avatar Snakn1 commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.