RPi.GPIO emulator
- Python 3.5
$ pip install git+https://github.com/nosix/raspberry-gpio-emulator/
import RPi.GPIO as GPIO
function:
- GPIO.setmode(mode)
- GPIO.setwarnings(flag)
- GPIO.setup(channel, state, initial, pull_up_down)
- GPIO.output(channel, outmode)
- GPIO.input(channel)
- GPIO.cleanup()
mode:
- GPIO.BCP
state:
- GPIO.OUT
- GPIO.IN
initial, outmode:
- GPIO.LOW
- GPIO.HIGH
pull_up_down:
- GPIO.PUD_OFF
- GPIO.PUD_DOWN
- GPIO.PUD_UP
See sample.py
This project based on Pi GPIO Emulator.
- Roderick Vella
- 2016
- Pi GPIO Emulator
- This project extends base design, but it change usage and implementation.