This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# GPIOSimulator

This Raspberry Pi emulator simulates some of the functions used in the RPi.GPIO library (using python). The intention of this library is educational.

## Installation

The easiest way is to download the zip file and extract the files in the same working environment of your script. To use the emulator just type the following at the beginning of your script.

from EmulatorGUI import GPIO

## Simulation

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

GPIO.setmode() GPIO.setwarnings() GPIO.setup() GPIO.input() GPIO.output()

## Test Example

from EmulatorGUI import GPIO #import RPi.GPIO as GPIO import time import traceback

def Main():



GPIO.setup(4, GPIO.OUT) GPIO.setup(17, GPIO.OUT, initial = GPIO.LOW) GPIO.setup(18, GPIO.OUT, initial = GPIO.LOW) GPIO.setup(21, GPIO.OUT, initial = GPIO.LOW) GPIO.setup(23, GPIO.IN, pull_up_down = GPIO.PUD_UP) GPIO.setup(15, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) GPIO.setup(24, GPIO.IN, pull_up_down = GPIO.PUD_DOWN) GPIO.setup(26, GPIO.IN)

if (GPIO.input(23) == False):
GPIO.output(4,GPIO.HIGH) GPIO.output(17,GPIO.HIGH) time.sleep(1)
if (GPIO.input(15) == True):
GPIO.output(18,GPIO.HIGH) GPIO.output(21,GPIO.HIGH) time.sleep(1)
if (GPIO.input(24) == True):
GPIO.output(18,GPIO.LOW) GPIO.output(21,GPIO.LOW) time.sleep(1)
if (GPIO.input(26) == True):
GPIO.output(4,GPIO.LOW) GPIO.output(17,GPIO.LOW) time.sleep(1)
except Exception as ex:
GPIO.cleanup() #this ensures a clean exit


## License and copyright

This library is based on work which is: (c) 2016 Roderick Vella, released under Creative Commons Attribution 4.0 International Public License It can be found in this repository at revision 69062b

All additions made after this revision are (c) 2016 Johannes Spielmann, released under AGPL-3.0+

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
GPIOSimulator-0.1.linux-x86_64.tar.gz (9.5 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Sep 8, 2016
GPIOSimulator-0.1.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Sep 8, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting