Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pimoroni/physical_feather_pins
̶L̶e̶t̶'̶s̶ ̶g̶e̶t̶ ̶p̶h̶y̶s̶i̶c̶a̶l̶,̶ ̶p̶h̶y̶s̶i̶c̶a̶l̶. A library for circuitpython to access pins on feather boards by their physical number/location
https://github.com/pimoroni/physical_feather_pins
adafruit-feather circuitpython gpio python
Last synced: about 1 month ago
JSON representation
̶L̶e̶t̶'̶s̶ ̶g̶e̶t̶ ̶p̶h̶y̶s̶i̶c̶a̶l̶,̶ ̶p̶h̶y̶s̶i̶c̶a̶l̶. A library for circuitpython to access pins on feather boards by their physical number/location
- Host: GitHub
- URL: https://github.com/pimoroni/physical_feather_pins
- Owner: pimoroni
- License: mit
- Created: 2019-09-26T16:01:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-23T20:42:37.000Z (over 3 years ago)
- Last Synced: 2024-05-17T00:07:24.758Z (7 months ago)
- Topics: adafruit-feather, circuitpython, gpio, python
- Language: Python
- Homepage:
- Size: 488 KB
- Stars: 3
- Watchers: 9
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Physical Feather Pins
A library to provide consistent pin access between different feathers.
(Modification of https://github.com/ATMakersOrg/HoldingArea/blob/master/FeatherTemplate.svg)# Example
Original Code:
```python
import board, digitalio
pin16 = digitalio.DigitalInOut(board.D4) # works on M4, but not M0 or nRF52840
pin16.switch_to_output()
pin16.value = True
```Using Physical Feather Pins:
```python
import pimoroni_physical_feather_pins, digitalio
pin16 = digitalio.DigitalInOut(pimoroni_physical_feather_pins.pin16())
# works on all feathers with a gpio there, gives a verbose error on M0 for example, note the parentheses
pin16.switch_to_output()
pin16.value = True
```## Tested
* M4 Express
* M0 Express
* nRF52840 Express
* Feather STM32F405 Express
* Feather S2## Untested but should work
* Adafruit Feather M0 Adalogger
* Adafruit Feather M0 Basic
* Adafruit Feather M0 RFM69
* Adafruit Feather M0 RFM9x