An access layer for Pineworks Labs RP2040 GPIO boards
Project description
Pineworks Labs RP2040 GPIO
Importing
To import this package, run: import pineworkslabs.GPIO as GPIO
Connecting to the GPIO
When the package is imported, the setup code will find a compatible GPIO board on a connected COM port.
Example: blink an LED
import time
GPIO.setmode(GPIO.BCM_PORCUPINE)
pin = 20
while True:
try:
GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, GPIO.HIGH)
time.sleep(0.25)
GPIO.output(pin, GPIO.LOW)
time.sleep(0.25)
except KeyboardInterrupt:
GPIO.cleanup()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pineworkslabs-0.0.1.tar.gz
(14.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pineworkslabs-0.0.1.tar.gz.
File metadata
- Download URL: pineworkslabs-0.0.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd60d1593a3bb449445c682bde113c85fb69ae16a533176ec6a55f8b93a8ebaa
|
|
| MD5 |
8d62c126d6156dc14f778ba7e8a177d1
|
|
| BLAKE2b-256 |
f5724496f7b6aab17853f65fb6fd5eb95e0102ba900b12af102905740136c82e
|
File details
Details for the file pineworkslabs-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pineworkslabs-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0883905416a9c219bebfb5d12e7c6bd223b5c4230e33ff9a7607a3938f641345
|
|
| MD5 |
67e1ed43774d3910e2fc24cbcf711ee4
|
|
| BLAKE2b-256 |
47eab456aae4fbb9663d306a78a8617829c27cfc460c9bfcc3fd374d39bfd98d
|