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
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
Mock.GPIO-0.1.8.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for Mock.GPIO-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe27652ccfa580081b903707274f761c72177abae79f015774ee4009f50afe6 |
|
MD5 | 53ee4580e6791cc6c8cf89064a3f46c9 |
|
BLAKE2b-256 | d07fad4d46489b7e4b5eaf4dd8cc53ae2ea17f08e167bff0337b595e3a26675e |