Skip to main content

An access layer for the Pineworks Labs RP2040 GPIO board

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.PINEWORKS)

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()

Acknowledgements

We are indebted to the work of the telemetrix team for connectivity between the PC and the GPIO board.

Project details


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.1.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pineworkslabs-0.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pineworkslabs-0.1.0.tar.gz.

File metadata

  • Download URL: pineworkslabs-0.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for pineworkslabs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ba456434c8109f22dee9721150066814522d7b17dea5a6f50fb9a48c645341a
MD5 f9908d6e1e51522a464cb77d2f726a52
BLAKE2b-256 498574f70737b3092ea66a8641c0997c2fd57e2204e1a0871d659049fe9484f6

See more details on using hashes here.

File details

Details for the file pineworkslabs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pineworkslabs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for pineworkslabs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1acd9b51a607e6e352cadc13403d2bf0725d4c27da92ad3faac65f78c70eca0
MD5 369a42f6ee50a53ddb8d839d4fa6f0c9
BLAKE2b-256 7580f673688af72535850e6fb676d031d38f2643a8ced9026a67ebdcb0b03ece

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page