Skip to main content

Virtual Pi Library for Raspberry Pi

Project description

Virtual Pi

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

$ sudo pip3 install VPi

To use the mock or virtual pi just type the following at the beginning of your script.

try:
      from RPi.GPIO import GPIO
      import board
      import busio
      import spidev
except:
      from VPi.GPIO import GPIO
      import VPi.board as board
      import VPi.busio as busio
      import VPi.spidev as spidev

Works with

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

VPi-0.1.4.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

VPi-0.1.4-py3-none-any.whl (13.5 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