Skip to main content

Mock Library for RPi.GPIO

Project description

GPIOEmulator

The easiest way to use this package is to install using pip3 for python 3

$ sudo pip3 install Mock.GPIO

To use the emulator just type the following at the beginning of your script.

from Mock.GPIO import GPIO

Works with

Simulation

This library simulates the following functions which are used in the RPi.GPIO library.

  • GPIO.setmode()
  • GPIO.getmode()
  • GPIO.setwarnings()
  • GPIO.setup()
  • GPIO.output()
  • GPIO.input()
  • GPIO.wait_for_edge()
  • GPIO.add_event_detect()
  • GPIO.event_detected()
  • GPIO.add_event_callback()
  • GPIO.remove_event_detect()
  • GPIO.gpio_function()
  • GPIO.start()
  • GPIO.ChangeFrequency()
  • GPIO.ChangeDutyCycle()
  • GPIO.stop()
  • GPIO.cleanup()

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

Mock.GPIO-0.1.9.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

Mock.GPIO-0.1.9-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file Mock.GPIO-0.1.9.tar.gz.

File metadata

  • Download URL: Mock.GPIO-0.1.9.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for Mock.GPIO-0.1.9.tar.gz
Algorithm Hash digest
SHA256 264498b56a085f9e01fcb0a7b5dd126d16475effa51887473e43af32f2645b0b
MD5 1a8c0f0900e068beb0ef9a8c5f363806
BLAKE2b-256 32f6b1bcfe757bb942fe0aa8028c8957b0390bd5f7a38216d07265184f5cfb2c

See more details on using hashes here.

File details

Details for the file Mock.GPIO-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: Mock.GPIO-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for Mock.GPIO-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 38710310c5f9ecd635617b26a55eddb7bb18e4397469d7f2251a56ad71b02175
MD5 140a0d5a4225c0544d8d75f9c36b00cd
BLAKE2b-256 70876d1a322dedbfce9f16ac54c04dddeb80c05ad1e030e5a12a63841232a504

See more details on using hashes here.

Supported by

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