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.8.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

Mock.GPIO-0.1.8-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

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