Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Easy interface Pinguino-Python

Project Description

Python for Pinguino.

About

Pynguino 2.0 is a Python package for easy interface between Pinguino and python.

Installation and Dependencies

You can get Pynguino 2.0 from PyPI through the command:

pip install pynguino

Pynguino 2.0 only work in Python2, so, in some systems you must execute:

pip2 install pynguino

Pynguino 2.0 is often fixing bugs and adding new features, so it is recommended to keep the updated package:

pip2 install pynguino --upgrade

USB Example

Downloading this code (usb_8bit.pde) on Pinguino:

#!/usr/bin/env python
#-*- coding: utf-8 -*-

from pynguino import PynguinoUSB
pinguino = PynguinoUSB(vboot="v2")

pinguino.pinMode(6, "OUTPUT")

for i in range(10):
    pinguino.digitalWrite(6, "HIGH")
    pinguino.delay(100)
    pinguino.digitalWrite(6, "LOW")
    pinguino.delay(200)

pinguino.pinMode(0, "INPUT")
print("pin 06 digialRead: " + pinguino.digitalRead(0))

pinguino.pinMode(13, "INPUT")
print("pin 13 analogRead: " + pinguino.analogRead(13))

CDC Example

Downloading this code (cdc_8bit.pd) on Pinguino:

#!/usr/bin/env python
#-*- coding: utf-8 -*-

from pynguino import PynguinoCDC
pinguino = PynguinoCDC(port=0, baudrate=9600)

pinguino.pinMode(6, "OUTPUT")

for i in range(10):
    pinguino.digitalWrite(6, "HIGH")
    pinguino.delay(100)
    pinguino.digitalWrite(6, "LOW")
    pinguino.delay(200)

pinguino.pinMode(0, "INPUT")
print("pin 06 digialRead: " + pinguino.digitalRead(6))

pinguino.pinMode(13, "INPUT")
print("pin 13 analogRead: " + pinguino.analogRead(13))

Read the docs…

Release History

Release History

This version
History Node

2.0.12

History Node

2.0.11

History Node

2.0.10

History Node

2.0.9

History Node

2.0.8

History Node

2.0.7

History Node

2.0.6

History Node

2.0.5

History Node

2.0.4

History Node

2.0.3

History Node

2.0.2

History Node

2.0.1

History Node

2.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pynguino-2.0.12.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Nov 12, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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